diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2007-03-03 20:02:09 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2007-03-03 20:02:09 +0000 |
commit | 5e783e1266237c8cda3067195b2e3dde8c9aa305 (patch) | |
tree | fb4074f43c9d41d28533c44cfad6dcfdac49b1fa | |
parent | 73686886420f9588efc21befeb061c62545bfde9 (diff) | |
download | netsurf-5e783e1266237c8cda3067195b2e3dde8c9aa305.tar.gz netsurf-5e783e1266237c8cda3067195b2e3dde8c9aa305.tar.bz2 |
Ignore common GIF screen size errors (fix 1650225)
svn path=/trunk/netsurf/; revision=3192
-rw-r--r-- | image/gifread.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |