[FFmpeg-devel] [PATCH] Fix decoding of problematic rawvideo MOV file
Michael Niedermayer
michaelni
Tue Jul 28 11:18:21 CEST 2009
On Mon, Jul 27, 2009 at 08:14:20PM -0700, Jason Garrett-Glaser wrote:
> On Sat, Jul 25, 2009 at 1:24 AM, Michael Niedermayer<michaelni at gmx.at> wrote:
> > On Thu, Jul 23, 2009 at 03:14:07PM -0700, Jason Garrett-Glaser wrote:
> >> Attached patch fixes "WRAW" mov files with BGR24 raw video.
> >
> > what is WRAW?
> > Win32 RGB RAW ?
>
> It's Windows raw formats according to Quicktime docs--which it seems
> could be anything.
>
> >
> > [...]
> >> @@ -88,7 +88,8 @@
> >> ? ? ? ? ?return -1;
> >>
> >> ? ? ?if((avctx->extradata_size >= 9 && !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9)) ||
> >> - ? ? ? avctx->codec_tag == MKTAG( 3 , ?0 , ?0 , ?0 ))
> >> + ? ? ? ?avctx->codec_tag == MKTAG( 3 , ?0 , ?0 , ?0 ) ||
> >> + ? ? ? (avctx->codec_tag == MKTAG('W', 'R', 'A', 'W') && avctx->bits_per_coded_sample == 24))
> >> ? ? ? ? ?context->flip=1;
> >>
> >
> > the bits_per_coded_sample check looks wrong
>
> Why? I know that the PAL8 sample wasn't flipped, and my BGR24 sample
> is flipped, so that's the only thing I could come up with.
all rgb should be fliped unless height<0 or so IIRC
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090728/32a672f0/attachment.pgp>
More information about the ffmpeg-devel
mailing list