diff options
author | Marton Balint <cus@passwd.hu> | 2018-04-23 20:46:25 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-05-01 21:22:03 +0200 |
commit | 70a01aa4901a217a95f32486354844a9496ff849 (patch) | |
tree | a6b37569228eaf5ec5fc1c80399423d452a07c57 /libavcodec/anm.c | |
parent | da6c519f6e531239c0cc97f0d68d7f8756c6862a (diff) | |
download | ffmpeg-70a01aa4901a217a95f32486354844a9496ff849.tar.gz |
avcodec/anm: fix palette alpha
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit e894d958fce6f47cbe1e4a5e3f2c74af47057125)
Diffstat (limited to 'libavcodec/anm.c')
-rw-r--r-- | libavcodec/anm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/anm.c b/libavcodec/anm.c index 72684189bb..ab6a3994e9 100644 --- a/libavcodec/anm.c +++ b/libavcodec/anm.c @@ -54,7 +54,7 @@ static av_cold int decode_init(AVCodecContext *avctx) bytestream2_skipu(&s->gb, 16 * 8); for (i = 0; i < 256; i++) - s->palette[i] = bytestream2_get_le32u(&s->gb); + s->palette[i] = (0xFFU << 24) | bytestream2_get_le32u(&s->gb); return 0; } |