]> git.sesse.net Git - ffmpeg/commitdiff
gifdec: use transparent instead of background color index
authorDon Moir <donmoir@comcast.net>
Sun, 30 Dec 2012 17:21:25 +0000 (17:21 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 30 Dec 2012 17:21:25 +0000 (17:21 +0000)
Wrong code was commited in 64f4fb75c4cea6b33b5fd5b135c19950df9a7154.

libavcodec/gifdec.c

index a0ffe77183e3581c733e793485ff2ee7ea01d959..b7aafb2cf22c522915d6a65b98ba03d90edd43a5 100644 (file)
@@ -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 >= 0)
+            if (s->transparent_color_index >= 0)
                 s->stored_bg_color = s->trans_color;
             else
                 s->stored_bg_color = s->bg_color;