Hi, > - if( (unsigned)s->screen_width > 32767 > - || (unsigned)s->screen_height > 32767){ > + if (s->screen_width > 32767 || > + s->screen_height > 32767) { Would removing this check be enough to support gifs up to 65535x65535? Regards