[FFmpeg-cvslog] gifdec: fix transparent background color

Don Moir git at videolan.org
Thu Dec 27 19:15:25 CET 2012


ffmpeg | branch: master | Don Moir <donmoir at comcast.net> | Thu Dec 27 18:06:49 2012 +0000| [64f4fb75c4cea6b33b5fd5b135c19950df9a7154] | committer: Paul B Mahol

gifdec: fix transparent background color

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64f4fb75c4cea6b33b5fd5b135c19950df9a7154
---

 libavcodec/gifdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 4f44fd4..a0ffe77 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;



More information about the ffmpeg-cvslog mailing list