36 |
place these paths at the top of the Tools|Options|Directories list |
place these paths at the top of the Tools|Options|Directories list |
37 |
|
|
38 |
headers: |
headers: |
39 |
C:\DXVCSDK\include |
C:\DX90SDK\Include |
40 |
C:\DXVCSDK\samples\Multimedia\DirectShow\BaseClasses |
C:\DX90SDK\Samples\C++\DirectShow\BaseClasses |
41 |
|
|
42 |
libraries (optional): |
C:\DX90SDK\Samples\C++\DirectShow\BaseClasses\Release |
43 |
C:\DXVCSDK\samples\Multimedia\DirectShow\BaseClasses\Release |
C:\DX90SDK\Samples\C++\DirectShow\BaseClasses\Debug |
44 |
*/ |
*/ |
45 |
|
|
46 |
|
|
788 |
{ |
{ |
789 |
CMediaType mtOut2 = m_pOutput->CurrentMediaType(); |
CMediaType mtOut2 = m_pOutput->CurrentMediaType(); |
790 |
VIDEOINFOHEADER2* vihOut2 = (VIDEOINFOHEADER2*)mtOut2.Format(); |
VIDEOINFOHEADER2* vihOut2 = (VIDEOINFOHEADER2*)mtOut2.Format(); |
791 |
if (vihOut2->dwPictAspectRatioX != ar_x && vihOut2->dwPictAspectRatioY != ar_y) |
|
792 |
|
if (*mtOut2.FormatType() == FORMAT_VideoInfo2 && |
793 |
|
vihOut2->dwPictAspectRatioX != ar_x && vihOut2->dwPictAspectRatioY != ar_y) |
794 |
{ |
{ |
795 |
vihOut2->dwPictAspectRatioX = ar_x; |
vihOut2->dwPictAspectRatioX = ar_x; |
796 |
vihOut2->dwPictAspectRatioY = ar_y; |
vihOut2->dwPictAspectRatioY = ar_y; |