mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
avcodec/hnm4video: fix palette alpha
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
e894d958fc
commit
4c501bafc0
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user