avcodec/hnm4video: fix palette alpha
authorMarton Balint <cus@passwd.hu>
Mon, 23 Apr 2018 18:46:49 +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/hnm4video.c

index a64dbb1..9e1ac49 100644 (file)
@@ -375,6 +375,7 @@ static void hnm_update_palette(AVCodecContext *avctx, uint8_t *src,
             hnm->palette[writeoffset] = bytestream2_get_be24(&gb);
             if (!eight_bit_colors)
                 hnm->palette[writeoffset] <<= 2;
+            hnm->palette[writeoffset] |= (0xFFU << 24);
             count--;
             writeoffset++;
         }