mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-26 18:30:52 +08:00
dv: fix avpriv_dv_codec_profile with lowres > 0
Fixes ticket #44. Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
084bd109fc
commit
7b2dba1c50
@@ -287,9 +287,9 @@ const DVprofile* avpriv_dv_codec_profile(AVCodecContext* codec)
|
||||
int i;
|
||||
|
||||
for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++)
|
||||
if (codec->height == dv_profiles[i].height &&
|
||||
codec->pix_fmt == dv_profiles[i].pix_fmt &&
|
||||
codec->width == dv_profiles[i].width)
|
||||
if (codec->coded_height == dv_profiles[i].height &&
|
||||
codec->pix_fmt == dv_profiles[i].pix_fmt &&
|
||||
codec->coded_width == dv_profiles[i].width)
|
||||
return &dv_profiles[i];
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user