[FFmpeg-devel] [PATCH]Fix Planar Y'CbCr 8-bit 4:2:0 in mov
Baptiste Coudurier
baptiste.coudurier
Sun Jan 17 04:24:59 CET 2010
On 1/16/10 5:49 PM, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes issue 1687.
>
> Please comment, Carl Eugen
>
>
> patchissue1687.diff
>
>
> Index: libavformat/mov.c
> ===================================================================
> --- libavformat/mov.c (revision 21258)
> +++ libavformat/mov.c (working copy)
> @@ -949,6 +949,8 @@
> PUT_UTF8(codec_name[i+1], tmp, st->codec->codec_name[pos++] = tmp;)
> }
> st->codec->codec_name[pos] = 0;
> + if (!memcmp(st->codec->codec_name, "Planar Y'CbCr 8-bit 4:2:0", 25))
> + st->codec->codec_tag=MKTAG('I', '4', '2', '0');
> }
>
> st->codec->bits_per_coded_sample = get_be16(pb); /* depth */
>
Well I don't like the demuxer setting another codec_tag than the one
present in the file.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list