mirror of https://git.ffmpeg.org/ffmpeg.git
avidec: Set palette alpha as fully opaque
Palette format is always in RGBA.
This commit is contained in:
parent
bad4aad403
commit
497c087939
|
@ -653,7 +653,7 @@ static int avi_read_header(AVFormatContext *s)
|
||||||
pal_src = st->codecpar->extradata +
|
pal_src = st->codecpar->extradata +
|
||||||
st->codecpar->extradata_size - pal_size;
|
st->codecpar->extradata_size - pal_size;
|
||||||
for (i = 0; i < pal_size / 4; i++)
|
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;
|
ast->has_pal = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue