[FFmpeg-devel] [RFC][PATCH] Fix decoding of QT WRAW file from ticket #108

ami_stuff ami_stuff at o2.pl
Thu May 12 18:36:27 CEST 2011


The attached patch fixes decoding of file from ticket #108 (and flips the video).

The problem is that it seems the correct color mode for this file should be PIX_FMT_BGR24
(the colors looks more or less the same like with QT player), but with my patch PIX_FMT_RGB24
color mode is selected... or maybe this is problem with endianness (I test on big-endian)?

Also when I manually assign

avctx->pix_fmt = PIX_FMT_BGR24;

some distortion is visible at the top of the video.

So the question is should I leave the patch as it is now or modify it to assign color mode to BGR24
when the file is encoded with WRAW codec and have 24bpp?

BTW. I have only this one WRAW file for test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rawdec.diff
Type: text/x-diff
Size: 1063 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110512/b075dbd8/attachment.bin>

More information about the ffmpeg-devel mailing list