[FFmpeg-devel] [PATCH] Fix decoding of problematic rawvideo MOV file

Michael Niedermayer michaelni
Sat Jul 25 10:24:43 CEST 2009


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 ?

[...]
> @@ -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


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- 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/20090725/198422dc/attachment.pgp>



More information about the ffmpeg-devel mailing list