summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdata.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2011-12-25 19:31:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-26 22:12:20 +0100
commit7b2dba1c50c92c76f147727be7c27872252e29f6 (patch)
tree424ee34540b069de28fc5249ba919f7bd991808d /libavcodec/dvdata.c
parent084bd109fcaaddd30d90601aff1f987abebadbfb (diff)
downloadffmpeg-streaming-7b2dba1c50c92c76f147727be7c27872252e29f6.zip
ffmpeg-streaming-7b2dba1c50c92c76f147727be7c27872252e29f6.tar.gz
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>
Diffstat (limited to 'libavcodec/dvdata.c')
-rw-r--r--libavcodec/dvdata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c
index b29f5ce..f292d4b 100644
--- a/libavcodec/dvdata.c
+++ b/libavcodec/dvdata.c
@@ -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;
OpenPOWER on IntegriCloud