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

gifdec: fix transparent background color

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Don Moir 2012-12-27 18:06:49 +00:00 committed by Paul B Mahol
parent b61097fe0d
commit 64f4fb75c4

View File

@ -202,7 +202,7 @@ static int gif_read_image(GifState *s)
s->gce_w = width; s->gce_h = height; s->gce_w = width; s->gce_h = height;
if (s->gce_disposal == GCE_DISPOSAL_BACKGROUND) { if (s->gce_disposal == GCE_DISPOSAL_BACKGROUND) {
if (s->background_color_index == s->transparent_color_index) if (s->background_color_index >= 0)
s->stored_bg_color = s->trans_color; s->stored_bg_color = s->trans_color;
else else
s->stored_bg_color = s->bg_color; s->stored_bg_color = s->bg_color;