[FFmpeg-cvslog] gifdec: use transparent instead of background color index

Don Moir git at videolan.org
Sun Dec 30 18:29:30 CET 2012


ffmpeg | branch: master | Don Moir <donmoir at comcast.net> | Sun Dec 30 17:21:25 2012 +0000| [522cb6abf22a2d28aecbd5dbfe174689fa937565] | committer: Paul B Mahol

gifdec: use transparent instead of background color index

Wrong code was commited in 64f4fb75c4cea6b33b5fd5b135c19950df9a7154.

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

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

diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index a0ffe77..b7aafb2 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 >= 0)
+            if (s->transparent_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