1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Make PAL8 pcx images opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-11 18:38:16 +01:00
parent e22eff964f
commit 0b7aec5fa4

View File

@ -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));
}