Make PAL8 pcx images opaque.

pull/2/head
Carl Eugen Hoyos 13 years ago
parent e22eff964f
commit 0b7aec5fa4
  1. 2
      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));
}

Loading…
Cancel
Save