[FFmpeg-cvslog] avcodec/hnm4video: fix palette alpha

Marton Balint git at videolan.org
Tue May 1 22:39:51 EEST 2018


ffmpeg | branch: release/4.0 | Marton Balint <cus at passwd.hu> | Mon Apr 23 20:46:49 2018 +0200| [0a22e31fbbbadcd481ebc702871192c54ecf1ee9] | committer: Marton Balint

avcodec/hnm4video: fix palette alpha

Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit 4c501bafc08c0260c299074d119b85ba39ab334a)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a22e31fbbbadcd481ebc702871192c54ecf1ee9
---

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



More information about the ffmpeg-cvslog mailing list