From 497c087939e32b26b792515d2dbc7e22561203f7 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Sun, 2 Oct 2016 12:24:07 -0400 Subject: [PATCH] avidec: Set palette alpha as fully opaque Palette format is always in RGBA. --- libavformat/avidec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index b2457d5824..b07dabd38c 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -653,7 +653,7 @@ static int avi_read_header(AVFormatContext *s) pal_src = st->codecpar->extradata + st->codecpar->extradata_size - pal_size; for (i = 0; i < pal_size / 4; i++) - ast->pal[i] = AV_RL32(pal_src + 4 * i); + ast->pal[i] = (0xFFu << 24) | AV_RL32(pal_src + 4 * i); ast->has_pal = 1; }