From 5e783e1266237c8cda3067195b2e3dde8c9aa305 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sat, 3 Mar 2007 20:02:09 +0000 Subject: Ignore common GIF screen size errors (fix 1650225) svn path=/trunk/netsurf/; revision=3192 --- image/gifread.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'image') diff --git a/image/gifread.c b/image/gifread.c index e8bf059bf..dab68eea0 100644 --- a/image/gifread.c +++ b/image/gifread.c @@ -166,12 +166,12 @@ int gif_initialise(struct gif_animation *gif) { such, we detect for the common cases and set the sizes as 0 if they are found which results in the GIF being the maximum size of the frames. */ - if (((gif->width == 640) && (gif->width == 480)) || - ((gif->width == 640) && (gif->width == 512)) || - ((gif->width == 800) && (gif->width == 600)) || - ((gif->width == 1024) && (gif->width == 768)) || - ((gif->width == 1280) && (gif->width == 1024)) || - ((gif->width == 1600) && (gif->width == 1200)) || + if (((gif->width == 640) && (gif->height == 480)) || + ((gif->width == 640) && (gif->height == 512)) || + ((gif->width == 800) && (gif->height == 600)) || + ((gif->width == 1024) && (gif->height == 768)) || + ((gif->width == 1280) && (gif->height == 1024)) || + ((gif->width == 1600) && (gif->height == 1200)) || ((gif->width == 0) || (gif->height == 0)) || ((gif->width > 2048) || (gif->height > 2048))) { gif->width = 1; -- cgit v1.2.3