Fix misdisplay of interlaced GIFs with libgif5.

* image.c (gif_load): libgif5 deinterlaces for us, so don't do
it again.

Fixes: debbugs:16372
This commit is contained in:
Paul Eggert 2014-01-07 13:14:32 -08:00
parent d831c9b864
commit be316ede5f
2 changed files with 7 additions and 1 deletions

View 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

View 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;