[FFmpeg-devel] [PATCH]Fix Planar Y'CbCr 8-bit 4:2:0 in mov

Carl Eugen Hoyos cehoyos
Mon Jan 18 00:58:19 CET 2010


Baptiste Coudurier <baptiste.coudurier <at> gmail.com> writes:

> > 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');
> 
> 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? For this codec (that has tag YV12), U and V
are incorrectly swapped.

Carl Eugen




More information about the ffmpeg-devel mailing list