]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix misdisplay of interlaced GIFs with libgif5.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jan 2014 21:14:32 +0000 (13:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jan 2014 21:14:32 +0000 (13:14 -0800)
* image.c (gif_load): libgif5 deinterlaces for us, so don't do
it again.

Fixes: debbugs:16372
src/ChangeLog
src/image.c

index a9575a142235edaf1ccb6da80b6773299d4cbbc8..8df6e31521dda4534186dd5b2a47307a3bc77a6c 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix misdisplay of interlaced GIFs with libgif5 (Bug#16372).
+       * image.c (gif_load): libgif5 deinterlaces for us, so don't do
+       it again.
+
 2014-01-06  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (redisplay_window): Don't skip window redisplay if the
index 7d6445527a98b47586e88bd27c1afdd6fc02a202..cbc869127d0a5079df0fd9b29fd9b584c04d14e3 100644 (file)
@@ -7586,7 +7586,7 @@ gif_load (struct frame *f, struct image *img)
          }
 
       /* Apply the pixel values.  */
-      if (gif->SavedImages[j].ImageDesc.Interlace)
+      if (GIFLIB_MAJOR < 5 && gif->SavedImages[j].ImageDesc.Interlace)
        {
          int row, pass;