aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-04-23 20:46:49 +0200
committerMarton Balint <cus@passwd.hu>2018-05-01 21:22:19 +0200
commit0a22e31fbbbadcd481ebc702871192c54ecf1ee9 (patch)
tree0757ba0387560a558bdd6ff2bc7885f205334d29
parent70a01aa4901a217a95f32486354844a9496ff849 (diff)
downloadffmpeg-0a22e31fbbbadcd481ebc702871192c54ecf1ee9.tar.gz
avcodec/hnm4video: fix palette alpha
Signed-off-by: Marton Balint <cus@passwd.hu> (cherry picked from commit 4c501bafc08c0260c299074d119b85ba39ab334a)
-rw-r--r--libavcodec/hnm4video.c1
1 files changed, 1 insertions, 0 deletions
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++;
}