Revision 94cebc56

View differences:

libavcodec/gifdec.c
258 258
#endif
259 259
        switch (code) {
260 260
        case ',':
261
            if (gif_read_image(s) < 0)
262
                return -1;
263
            return 0;
264
        case ';':
265
            /* end of image */
266
            return -1;
261
            return gif_read_image(s);
267 262
        case '!':
268 263
            if (gif_read_extension(s) < 0)
269 264
                return -1;
270 265
            break;
266
        case ';':
267
            /* end of image */
271 268
        default:
272 269
            /* error or erroneous EOF */
273 270
            return -1;

Also available in: Unified diff