[FFmpeg-devel] [PATCH]Fix Planar Y'CbCr 8-bit 4:2:0 in mov
Carl Eugen Hoyos
Sun Jan 24 17:15:03 CET 2010
Baptiste Coudurier <baptiste.coudurier <at> gmail.com> writes:
> On 1/23/10 5:19 AM, Carl Eugen Hoyos wrote:
> > Carl Eugen Hoyos<cehoyos<at> ag.or.at> writes:
> >>>> + if (!memcmp(st->codec->codec_name, "Planar Y'CbCr 8-bit 4:2:0", 25))
> >>>> + st->codec->codec_tag=MKTAG('I', '4', '2', '0');
> >>> Well I don't like the demuxer setting another codec_tag than the one
> >>> present in the file.
> >> So how should issue 1687 be fixed?
> How does VLC handle it ?
VLC decodes samples/V-codecs/ATI-VCR12/ATI/yv12test.avi incorrectly. That sample
uses fourcc YV12 and U and V have to be swapped to get PIX_FMT_YUV420P.
http://www.fourcc.org/yuv.php#Planar%20YUV%20Formats indeicates that fourcc's
YV12 and I420 should be decoded differently (which FFmpeg does currently and
succeeds for yv12test.avi while the mov sample from issue 1687 expects to be
decoded like FFmpeg decodes I420).
Ok to apply or do you have another suggestion?
More information about the ffmpeg-devel