826 |
return S_FALSE; |
return S_FALSE; |
827 |
} else |
} else |
828 |
if (g_config.aspect_ratio == 0 || g_config.aspect_ratio == 1 && forced_ar == false) { |
if (g_config.aspect_ratio == 0 || g_config.aspect_ratio == 1 && forced_ar == false) { |
|
// inspired by minolta! works for VMR 7 + 9 |
|
829 |
|
|
830 |
|
if (stats.type != XVID_TYPE_NOTHING) { /* dont attempt to set vmr aspect ratio if no frame was returned by decoder */ |
831 |
|
// inspired by minolta! works for VMR 7 + 9 |
832 |
IMediaSample2 *pOut2 = NULL; |
IMediaSample2 *pOut2 = NULL; |
833 |
AM_SAMPLE2_PROPERTIES outProp2; |
AM_SAMPLE2_PROPERTIES outProp2; |
834 |
if (SUCCEEDED(pOut->QueryInterface(IID_IMediaSample2, (void **)&pOut2)) && |
if (SUCCEEDED(pOut->QueryInterface(IID_IMediaSample2, (void **)&pOut2)) && |
849 |
} |
} |
850 |
} |
} |
851 |
} |
} |
852 |
|
} |
853 |
else |
else |
854 |
{ /* Preroll frame - won't be displayed */ |
{ /* Preroll frame - won't be displayed */ |
855 |
int tmp = m_frame.output.csp; |
int tmp = m_frame.output.csp; |