[FFmpeg-devel] [PATCH]Fix Planar Y'CbCr 8-bit 4:2:0 in mov
Sun Jan 24 22:07:08 CET 2010
On 1/24/10 8:15 AM, Carl Eugen Hoyos wrote:
> 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?
Well, I don't like it much but ok.
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel