aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Moir <donmoir@comcast.net>2012-12-27 18:06:49 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-27 18:10:25 +0000
commit64f4fb75c4cea6b33b5fd5b135c19950df9a7154 (patch)
tree50635a8c1a291e25fa1127d2782e03ac3fb063ad
parentb61097fe0dc20d442be4fdbaf9bd97e2769d7f43 (diff)
downloadffmpeg-64f4fb75c4cea6b33b5fd5b135c19950df9a7154.tar.gz
gifdec: fix transparent background color
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/gifdec.c2
1 files changed, 1 insertions, 1 deletions
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;