[FFmpeg-devel] [PATCH]Make PAL8 pcx pictures opaque
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Nov 11 17:57:17 CET 2011
Hi!
pcx pictures with a palette are transparent when scaled to rgb32, I don't
think this can be intended.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c
index 9a44d53..12c5c0c 100644
--- a/libavcodec/pcx.c
+++ b/libavcodec/pcx.c
@@ -71,7 +71,7 @@ static void pcx_palette(const uint8_t **src, uint32_t *dst, unsigned int pallen)
unsigned int i;
for (i=0; i<pallen; i++)
- *dst++ = bytestream_get_be24(src);
+ *dst++ = 0xFF000000 | bytestream_get_be24(src);
if (pallen < 256)
memset(dst, 0, (256 - pallen) * sizeof(*dst));
}
More information about the ffmpeg-devel
mailing list