]> git.sesse.net Git - ffmpeg/commitdiff
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 a64dbb1746d09eb17bde775fb86bdf3f0bc19812..9e1ac49ddc3c3989c8425b075271f08d0ca196b8 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++;
         }