[FFmpeg-cvslog] Make PAL8 pcx images opaque.

Carl Eugen Hoyos git at videolan.org
Fri Nov 11 18:41:00 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Nov 11 18:38:16 2011 +0100| [0b7aec5fa48288e0963d1bf531f7d0f44a482ada] | committer: Carl Eugen Hoyos

Make PAL8 pcx images opaque.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b7aec5fa48288e0963d1bf531f7d0f44a482ada
---

 libavcodec/pcx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c
index 851b205..6339dc0 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-cvslog mailing list