static int srt_probe(AVProbeData *p)

{

    const unsigned char *ptr = p->buf;

    int i, v, num = 0;



    if (AV_RB24(ptr) == 0xEFBBBF)

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



    while (*ptr == '\r' || *ptr == '\n')

        ptr++;

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

        if ((num == i || num + 1 == i)

            && sscanf(ptr, "%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)

            return AVPROBE_SCORE_MAX;

        num = atoi(ptr);

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

    }

    return 0;

}

static int srt_probe(AVProbeData *p)

{

    const unsigned char *ptr = p->buf;

    int i, v, num = 0;



    if (AV_RB24(ptr) == 0xEFBBBF)

        ptr += 3;  



    while (*ptr == '\r' || *ptr == '\n')

        ptr++;

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

        if ((num == i || num + 1 == i)

            && sscanf(ptr, "%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)

            return AVPROBE_SCORE_MAX;

        num = atoi(ptr);

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

    }

    return 0;

}

        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)

{

    const unsigned char *VAR_1 = VAR_0->buf;

    int VAR_2, VAR_3, VAR_4 = 0;



    if (AV_RB24(VAR_1) == 0xEFBBBF)

        VAR_1 += 3;  



    while (*VAR_1 == '\r' || *VAR_1 == '\n')

        VAR_1++;

    for (VAR_2=0; VAR_2<2; VAR_2++) {

        if ((VAR_4 == VAR_2 || VAR_4 + 1 == VAR_2)

            && sscanf(VAR_1, "%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &VAR_3) == 1)

            return AVPROBE_SCORE_MAX;

        VAR_4 = atoi(VAR_1);

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

    }

    return 0;

}

static int FUNC_0(AVProbeData *VAR_0)
{ const unsigned char *VAR_1 = VAR_0->buf; int VAR_2, VAR_3, VAR_4 = 0; if (AV_RB24(VAR_1) == 0xEFBBBF)
VAR_1 += 3; while (*VAR_1 == '\r' || *VAR_1 == '\n')
VAR_1++; for (VAR_2=0; VAR_2<2; VAR_2++) { if ((VAR_4 == VAR_2 || VAR_4 + 1 == VAR_2)
&& sscanf(VAR_1, "%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &VAR_3) == 1)
return AVPROBE_SCORE_MAX; VAR_4 = atoi(VAR_1); VAR_1 += strcspn(VAR_1, "\n") + 1; } return 0; }