[FFmpeg-devel] Fw: [PATCH] ZMBV fix for paletted modes
Michael Niedermayer
michaelni
Thu May 31 01:46:13 CEST 2007
see https://sourceforge.net/tracker/index.php?func=detail&aid=1507071&group_id=16082&atid=116082
"Hey, there's this discussion in the DOSBox world since
the ZMBV video capture was added to it...
It's about the ZMBV compressed videos using a palette.
Right now the ZMBV DOSBox uses and the one implemented
in libavcodec are different... RGB vs. BGR. I've
looked for files on the internet and I couldn't find
many captured videos in paletted mode, but the ones I
did find work fine with the DOSBox ZMBV, but not with
the one in libavcodec. I'm attaching a patch that
fixes this issue in libavcodec so that it works
consistently with the other files around the Internet."
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
--- old/libavcodec/zmbv.c 2006-06-15 22:12:34.328125000 -0500
+++ new/libavcodec/zmbv.c 2006-06-15 23:28:15.625000000 -0500
@@ -532,9 +532,9 @@
case ZMBV_FMT_8BPP:
for(j = 0; j < c->height; j++) {
for(i = 0; i < c->width; i++) {
- out[i * 3 + 0] = c->pal[(*src) * 3 + 0];
+ out[i * 3 + 2] = c->pal[(*src) * 3 + 0];
out[i * 3 + 1] = c->pal[(*src) * 3 + 1];
- out[i * 3 + 2] = c->pal[(*src) * 3 + 2];
+ out[i * 3 + 0] = c->pal[(*src) * 3 + 2];
*src++;
}
out += c->pic.linesize[0];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070531/14f7122c/attachment.pgp>
More information about the ffmpeg-devel
mailing list