diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-05-02 15:49:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-05-03 21:34:22 +0200 |
commit | 011006874cb46325b6bc83234f81879ff421c05f (patch) | |
tree | 68def3b86600ee5ae8c8c094acf4d2cc6a1e0c6f /libavcodec | |
parent | c83f60d7d7818948d014d6f9ab0a2e77371bb439 (diff) | |
download | ffmpeg-011006874cb46325b6bc83234f81879ff421c05f.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/jpeglsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index bd9224d97d..c61cb14f49 100644 --- a/libavcodec/jpeglsdec.c +++ b/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)); } |