static int microdvd_probe(AVProbeData *p)

{

    unsigned char c;

    const uint8_t *ptr = p->buf;

    int i;



    if (AV_RB24(ptr) == 0xEFBBBF)

        ptr += 3;  /* skip UTF-8 BOM */



    for (i=0; i<3; i++) {

        if (sscanf(ptr, "{%*d}{}%c",     &c) != 1 &&

            sscanf(ptr, "{%*d}{%*d}%c",  &c) != 1 &&

            sscanf(ptr, "{DEFAULT}{}%c", &c) != 1)

            return 0;

        ptr += strcspn(ptr, "\n") + 1;

    }

    return AVPROBE_SCORE_MAX;

}

static int microdvd_probe(AVProbeData *p)

{

    unsigned char c;

    const uint8_t *ptr = p->buf;

    int i;



    if (AV_RB24(ptr) == 0xEFBBBF)

        ptr += 3;  



    for (i=0; i<3; i++) {

        if (sscanf(ptr, "{%*d}{}%c",     &c) != 1 &&

            sscanf(ptr, "{%*d}{%*d}%c",  &c) != 1 &&

            sscanf(ptr, "{DEFAULT}{}%c", &c) != 1)

            return 0;

        ptr += strcspn(ptr, "\n") + 1;

    }

    return AVPROBE_SCORE_MAX;

}

        ptr += strcspn(ptr, "\n") + 1;         ptr += strcspn(ptr, "\n") + 1;         ptr += strcspn(ptr, "\n") + 1;         ptr += strcspn(ptr, "\n") + 1;         ptr += strcspn(ptr, "\n") + 1;
static int FUNC_0(AVProbeData *VAR_0)

{

    unsigned char VAR_1;

    const uint8_t *VAR_2 = VAR_0->buf;

    int VAR_3;



    if (AV_RB24(VAR_2) == 0xEFBBBF)

        VAR_2 += 3;  



    for (VAR_3=0; VAR_3<3; VAR_3++) {

        if (sscanf(VAR_2, "{%*d}{}%VAR_1",     &VAR_1) != 1 &&

            sscanf(VAR_2, "{%*d}{%*d}%VAR_1",  &VAR_1) != 1 &&

            sscanf(VAR_2, "{DEFAULT}{}%VAR_1", &VAR_1) != 1)

            return 0;

        VAR_2 += strcspn(VAR_2, "\n") + 1;

    }

    return AVPROBE_SCORE_MAX;

}

static int FUNC_0(AVProbeData *VAR_0)
{ unsigned char VAR_1; const uint8_t *VAR_2 = VAR_0->buf; int VAR_3; if (AV_RB24(VAR_2) == 0xEFBBBF)
VAR_2 += 3; for (VAR_3=0; VAR_3<3; VAR_3++) { if (sscanf(VAR_2, "{%*d}{}%VAR_1",     &VAR_1) != 1 && sscanf(VAR_2, "{%*d}{%*d}%VAR_1",  &VAR_1) != 1 && sscanf(VAR_2, "{DEFAULT}{}%VAR_1", &VAR_1) != 1) return 0; VAR_2 += strcspn(VAR_2, "\n") + 1; } return AVPROBE_SCORE_MAX; }