From feda266db5367517c62fdb14b5b281c90fcab89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 24 Mar 2012 23:39:30 +0100 Subject: [PATCH] DV: check coded_width/height instead of width/height. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the workaround also work with lowres. Fixes issue #633. Signed-off-by: Reimar Döffinger --- libavcodec/dvdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c index 9de1db5270..ac639387f1 100644 --- a/libavcodec/dvdata.c +++ b/libavcodec/dvdata.c @@ -300,7 +300,7 @@ const DVprofile* avpriv_dv_frame_profile2(AVCodecContext* codec, const DVprofile return &dv_profiles[2]; } - if(stype == 0 && codec && codec->codec_tag==AV_RL32("dvsd") && codec->width==720 && codec->height==576) + if(stype == 0 && codec && codec->codec_tag==AV_RL32("dvsd") && codec->coded_width==720 && codec->coded_height==576) return &dv_profiles[1]; for (i = 0; i < FF_ARRAY_ELEMS(dv_profiles); i++)