diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-11 18:38:16 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-11 18:40:19 +0100 |
commit | 0b7aec5fa48288e0963d1bf531f7d0f44a482ada (patch) | |
tree | 70087a6ca66fbb7c53a7cbceff48f37bf916eeb3 | |
parent | e22eff964f73d8b3f4b748088635c884c36d3ed9 (diff) | |
download | ffmpeg-0b7aec5fa48288e0963d1bf531f7d0f44a482ada.tar.gz |
Make PAL8 pcx images opaque.
-rw-r--r-- | libavcodec/pcx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index 851b205389..6339dc05c8 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)); } |