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
1 changed files with 1 additions and 1 deletions

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