[FFmpeg-devel] [PATCH 3/5] avcodec/hnm4video: fix palette alpha

Marton Balint cus at passwd.hu
Tue Apr 24 22:04:59 EEST 2018


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavcodec/hnm4video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/hnm4video.c b/libavcodec/hnm4video.c
index a64dbb1746..9e1ac49ddc 100644
--- a/libavcodec/hnm4video.c
+++ b/libavcodec/hnm4video.c
@@ -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++;
         }
-- 
2.13.6



More information about the ffmpeg-devel mailing list