[FFmpeg-devel] 4:2:0 DV25 file wrongly identified as 4:1:1
Carl Eugen Hoyos
cehoyos
Wed Sep 22 16:53:36 CEST 2010
Niobos <niobos <at> dest-unreach.be> writes:
> diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c
> index 7232baf..9eaa22f 100644
> --- a/libavcodec/dvdata.c
> +++ b/libavcodec/dvdata.c
> @@ -255,7 +255,7 @@ const DVprofile* ff_dv_frame_profile(const DVprofile *sys,
> int stype = frame[80*5 + 48 + 3] & 0x1f;
>
> /* 576i50 25Mbps 4:1:1 is a special case */
> - if (dsf == 1 && stype == 0 && frame[5] & 0x07) {
> + if (dsf == 1 && stype == 0 && frame[4] & 0x07 /* the APT field */) {
> return &dv_profiles[2];
> }
Please upload a sample to ftp://ffmpeg.org/MPlayer/incoming/issue2211
(write-only, you have to create the directory), I will then apply the patch.
(And please consider testing your sample before uploading.)
Carl Eugen
More information about the ffmpeg-devel
mailing list