From 45ba9d914db183931335ddc5dcacff12cb296d41 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 9 Oct 2011 11:00:23 +0000 Subject: [PATCH] Fix nsgif_get_internal to decode bitmap (similar to r12980) svn path=/trunk/netsurf/; revision=13018 --- image/gif.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/image/gif.c b/image/gif.c index 820b7181a..098287573 100644 --- a/image/gif.c +++ b/image/gif.c @@ -408,6 +408,11 @@ static void *nsgif_get_internal(const struct content *c, void *context) { nsgif_content *gif = (nsgif_content *) c; + if (gif->current_frame != gif->gif->decoded_frame) { + if (nsgif_get_frame(gif) != GIF_OK) + return NULL; + } + return gif->gif->frame_image; }