From 64f4fb75c4cea6b33b5fd5b135c19950df9a7154 Mon Sep 17 00:00:00 2001 From: Don Moir Date: Thu, 27 Dec 2012 18:06:49 +0000 Subject: [PATCH] gifdec: fix transparent background color Signed-off-by: Paul B Mahol --- libavcodec/gifdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 4f44fd4d53..a0ffe77183 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -202,7 +202,7 @@ static int gif_read_image(GifState *s) s->gce_w = width; s->gce_h = height; 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; else s->stored_bg_color = s->bg_color;