Set FLI/FLC Animation palette opaque.
This commit is contained in:
parent
c0be4ea0f2
commit
4e8078e6a8
@ -238,7 +238,7 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx,
|
|||||||
r = buf[stream_ptr++] << color_shift;
|
r = buf[stream_ptr++] << color_shift;
|
||||||
g = buf[stream_ptr++] << color_shift;
|
g = buf[stream_ptr++] << color_shift;
|
||||||
b = buf[stream_ptr++] << color_shift;
|
b = buf[stream_ptr++] << color_shift;
|
||||||
entry = (r << 16) | (g << 8) | b;
|
entry = 0xFF << 24 | r << 16 | g << 8 | b;
|
||||||
if (s->palette[palette_ptr] != entry)
|
if (s->palette[palette_ptr] != entry)
|
||||||
s->new_palette = 1;
|
s->new_palette = 1;
|
||||||
s->palette[palette_ptr++] = entry;
|
s->palette[palette_ptr++] = entry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user