diff options
author | Marton Balint <cus@passwd.hu> | 2018-05-06 18:18:19 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-05-16 22:50:18 +0200 |
commit | 61fed89ad425128b7f62ae57719c50503f75455a (patch) | |
tree | 7928eef62f667335bcadc65925bdf46c453804c4 /libavcodec | |
parent | 7931e01540a142f933e7c1399fa9833bdb5e505e (diff) | |
download | ffmpeg-61fed89ad425128b7f62ae57719c50503f75455a.tar.gz |
avcodec/xwddec: fix palette alpha
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 50d6b7bd830eddd403c50f1be3e57f1b4a98ed69)
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/xwddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xwddec.c b/libavcodec/xwddec.c index 8b0845fc01..592c98dd4e 100644 --- a/libavcodec/xwddec.c +++ b/libavcodec/xwddec.c @@ -227,7 +227,7 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data, blue = bytestream2_get_byteu(&gb); bytestream2_skipu(&gb, 3); // skip bitmask flag and padding - dst[i] = red << 16 | green << 8 | blue; + dst[i] = 0xFFU << 24 | red << 16 | green << 8 | blue; } } |