avcodec/jpeglsdec: Set alpha plane in PAL8 so image is not 100% transparent

Fixes: tickets/3933/128.jls

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/362/head
Michael Niedermayer 4 years ago
parent c83f60d7d7
commit 011006874c
  1. 2
      libavcodec/jpeglsdec.c

@ -124,7 +124,7 @@ int ff_jpegls_decode_lse(MJpegDecodeContext *s)
for (i=s->palette_index; i<=maxtab; i++) {
uint8_t k = i << shift;
pal[k] = 0;
pal[k] = wt < 4 ? 0xFF000000 : 0;
for (j=0; j<wt; j++) {
pal[k] |= get_bits(&s->gb, 8) << (8*(wt-j-1));
}

Loading…
Cancel
Save