diff mbox

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

Message ID 20180424190501.23908-3-cus@passwd.hu
State Accepted
Commit 4c501bafc08c0260c299074d119b85ba39ab334a
Headers show

Commit Message

Marton Balint April 24, 2018, 7:04 p.m. UTC
Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavcodec/hnm4video.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer April 25, 2018, 5:32 p.m. UTC | #1
On Tue, Apr 24, 2018 at 09:04:59PM +0200, Marton Balint wrote:
> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
>  libavcodec/hnm4video.c | 1 +
>  1 file changed, 1 insertion(+)

LGTM

thx

[...]
diff mbox

Patch

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