static int gif_parse_next_image(GifState *s)
{
    ByteIOContext *f = s->f;
    int ret, code;
    for (;;) {
        code = url_fgetc(f);
#ifdef DEBUG
        printf("gif: code=%02x '%c'\n", code, code);
#endif
        switch (code) {
        case ',':
            if (gif_read_image(s) < 0)
                return AVERROR(EIO);
            ret = 0;
            goto the_end;
        case ';':
            ret = AVERROR(EIO);
            goto the_end;
        case '!':
            if (gif_read_extension(s) < 0)
                return AVERROR(EIO);
            break;
        case EOF:
        default:
            ret = AVERROR(EIO);
            goto the_end;
        }
    }
  the_end:
    return ret;
}
['static int gif_parse_next_image(GifState *s)\n{\n    ByteIOContext *f = s->f;\n    int ret, code;\n    for (;;) {\n        code = url_fgetc(f);\n#ifdef DEBUG\n        printf("gif: code=%02x \'%c\'\\n", code, code);\n#endif\n        switch (code) {\n        case \',\':\n            if (gif_read_image(s) < 0)\n                return AVERROR(EIO);\n            ret = 0;\n            goto the_end;\n        case \';\':\n            ret = AVERROR(EIO);\n            goto the_end;\n        case \'!\':\n            if (gif_read_extension(s) < 0)\n                return AVERROR(EIO);\n            break;\n        case EOF:\n        default:\n            ret = AVERROR(EIO);\n            goto the_end;\n        }\n    }\n  the_end:\n    return ret;\n}']