diff options
author | Don Moir <donmoir@comcast.net> | 2012-12-27 18:06:49 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-27 18:10:25 +0000 |
commit | 64f4fb75c4cea6b33b5fd5b135c19950df9a7154 (patch) | |
tree | 50635a8c1a291e25fa1127d2782e03ac3fb063ad /libavcodec/gifdec.c | |
parent | b61097fe0dc20d442be4fdbaf9bd97e2769d7f43 (diff) | |
download | ffmpeg-64f4fb75c4cea6b33b5fd5b135c19950df9a7154.tar.gz |
gifdec: fix transparent background color
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 2 |
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; |