avcodec/anm: fix palette alpha
authorMarton Balint <cus@passwd.hu>
Mon, 23 Apr 2018 18:46:25 +0000 (20:46 +0200)
committerMarton Balint <cus@passwd.hu>
Mon, 30 Apr 2018 19:50:12 +0000 (21:50 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/anm.c

index 7268418..ab6a399 100644 (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;
 }