[FFmpeg-cvslog] avcodec/anm: fix palette alpha
Marton Balint
git at videolan.org
Tue May 1 22:39:49 EEST 2018
ffmpeg | branch: release/4.0 | Marton Balint <cus at passwd.hu> | Mon Apr 23 20:46:25 2018 +0200| [70a01aa4901a217a95f32486354844a9496ff849] | committer: Marton Balint
avcodec/anm: fix palette alpha
Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit e894d958fce6f47cbe1e4a5e3f2c74af47057125)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70a01aa4901a217a95f32486354844a9496ff849
---
libavcodec/anm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list