static int jacosub_probe(AVProbeData *p)

{

    const char *ptr     = p->buf;

    const char *ptr_end = p->buf + p->buf_size;



    if (AV_RB24(ptr) == 0xEFBBBF)

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



    while (ptr < ptr_end) {

        while (jss_whitespace(*ptr))

            ptr++;

        if (*ptr != '#' && *ptr != '\n') {

            if (timed_line(ptr))

                return AVPROBE_SCORE_EXTENSION + 1;

            return 0;

        }

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

    }

    return 0;

}

static int jacosub_probe(AVProbeData *p)

{

    const char *ptr     = p->buf;

    const char *ptr_end = p->buf + p->buf_size;



    if (AV_RB24(ptr) == 0xEFBBBF)

        ptr += 3; 



    while (ptr < ptr_end) {

        while (jss_whitespace(*ptr))

            ptr++;

        if (*ptr != '#' && *ptr != '\n') {

            if (timed_line(ptr))

                return AVPROBE_SCORE_EXTENSION + 1;

            return 0;

        }

        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 char *VAR_1     = VAR_0->buf;

    const char *VAR_2 = VAR_0->buf + VAR_0->buf_size;



    if (AV_RB24(VAR_1) == 0xEFBBBF)

        VAR_1 += 3; 



    while (VAR_1 < VAR_2) {

        while (jss_whitespace(*VAR_1))

            VAR_1++;

        if (*VAR_1 != '#' && *VAR_1 != '\n') {

            if (timed_line(VAR_1))

                return AVPROBE_SCORE_EXTENSION + 1;

            return 0;

        }

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

    }

    return 0;

}

static int FUNC_0(AVProbeData *VAR_0)
{ const char *VAR_1     = VAR_0->buf; const char *VAR_2 = VAR_0->buf + VAR_0->buf_size; if (AV_RB24(VAR_1) == 0xEFBBBF)
VAR_1 += 3; while (VAR_1 < VAR_2) { while (jss_whitespace(*VAR_1))
VAR_1++; if (*VAR_1 != '#' && *VAR_1 != '\n') { if (timed_line(VAR_1))
return AVPROBE_SCORE_EXTENSION + 1; return 0; } VAR_1 += strcspn(VAR_1, "\n") + 1; } return 0; }