avcodec/anm: fix palette alpha

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit e894d958fce6f47cbe1e4a5e3f2c74af47057125)
This commit is contained in:
Marton Balint 2018-04-23 20:46:25 +02:00
parent da6c519f6e
commit 70a01aa490

View File

@ -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;
}