static int gif_parse_next_image(GifState *s)

{

    for (;;) {

        int code = bytestream_get_byte(&s->bytestream);

#ifdef DEBUG

        dprintf(s->avctx, "gif: code=%02x '%c'\n", code, code);

#endif

        switch (code) {

        case ',':

            if (gif_read_image(s) < 0)

                return -1;

            return 0;

        case ';':

            /* end of image */

            return -1;

        case '!':

            if (gif_read_extension(s) < 0)

                return -1;

            break;

        default:

            /* error or errneous EOF */

            return -1;

        }

    }

}

static int gif_parse_next_image(GifState *s)

{

    for (;;) {

        int code = bytestream_get_byte(&s->bytestream);

#ifdef DEBUG

        dprintf(s->avctx, "gif: code=%02x '%c'\n", code, code);

#endif

        switch (code) {

        case ',':

            if (gif_read_image(s) < 0)

                return -1;

            return 0;

        case ';':

            

            return -1;

        case '!':

            if (gif_read_extension(s) < 0)

                return -1;

            break;

        default:

            

            return -1;

        }

    }

}

static int FUNC_0(GifState *VAR_0)

{

    for (;;) {

        int VAR_1 = bytestream_get_byte(&VAR_0->bytestream);

#ifdef DEBUG

        dprintf(VAR_0->avctx, "gif: VAR_1=%02x '%c'\n", VAR_1, VAR_1);

#endif

        switch (VAR_1) {

        case ',':

            if (gif_read_image(VAR_0) < 0)

                return -1;

            return 0;

        case ';':

            

            return -1;

        case '!':

            if (gif_read_extension(VAR_0) < 0)

                return -1;

            break;

        default:

            

            return -1;

        }

    }

}

static int FUNC_0(GifState *VAR_0)
{ for (;;) { int VAR_1 = bytestream_get_byte(&VAR_0->bytestream); #ifdef DEBUG
dprintf(VAR_0->avctx, "gif: VAR_1=%02x '%c'\n", VAR_1, VAR_1); #endif
switch (VAR_1) { case ',':
if (gif_read_image(VAR_0) < 0)
return -1; return 0; case ';': return -1; case '!':
if (gif_read_extension(VAR_0) < 0)
return -1; break; default:
return -1; } } }