mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
DV: Use profile[1] detection hack only for stype 0.
The two samples both have stype 0. Without this extra check, the code breaks 4:2:2 dvsd (stype 4), since that has the same resolution. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
b52bd2a4ab
commit
8fbf825ecc
@ -300,7 +300,7 @@ const DVprofile* avpriv_dv_frame_profile2(AVCodecContext* codec, const DVprofile
|
|||||||
return &dv_profiles[2];
|
return &dv_profiles[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(codec && codec->codec_tag==AV_RL32("dvsd") && codec->width==720 && codec->height==576)
|
if(stype == 0 && codec && codec->codec_tag==AV_RL32("dvsd") && codec->width==720 && codec->height==576)
|
||||||
return &dv_profiles[1];
|
return &dv_profiles[1];
|
||||||
|
|
||||||
for (i = 0; i < FF_ARRAY_ELEMS(dv_profiles); i++)
|
for (i = 0; i < FF_ARRAY_ELEMS(dv_profiles); i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user