diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-11 21:38:16 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-11 21:40:19 +0400 |
commit | 0b7aec5fa48288e0963d1bf531f7d0f44a482ada (patch) | |
tree | 70087a6ca66fbb7c53a7cbceff48f37bf916eeb3 /libavcodec | |
parent | e22eff964f73d8b3f4b748088635c884c36d3ed9 (diff) |
Make PAL8 pcx images opaque.
Diffstat (limited to 'libavcodec')
-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)); } |