1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avidec: Set palette alpha as fully opaque

Palette format is always in RGBA.
This commit is contained in:
Vittorio Giovara 2016-10-02 12:24:07 -04:00
parent bad4aad403
commit 497c087939

View File

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