static int64_t get_pts(const char *buf, int *duration)

{

    int i, hour, min, sec, hsec;

    int he, me, se, mse;



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

        int64_t start, end;

        if (sscanf(buf, "%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d",

                   &hour, &min, &sec, &hsec, &he, &me, &se, &mse) == 8) {

            min += 60*hour;

            sec += 60*min;

            start = sec*1000+hsec;

            me += 60*he;

            se += 60*me;

            end = se*1000+mse;

            *duration = end - start;

            return start;

        }

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

    }

    return AV_NOPTS_VALUE;

}

static int64_t get_pts(const char *buf, int *duration)

{

    int i, hour, min, sec, hsec;

    int he, me, se, mse;



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

        int64_t start, end;

        if (sscanf(buf, "%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d",

                   &hour, &min, &sec, &hsec, &he, &me, &se, &mse) == 8) {

            min += 60*hour;

            sec += 60*min;

            start = sec*1000+hsec;

            me += 60*he;

            se += 60*me;

            end = se*1000+mse;

            *duration = end - start;

            return start;

        }

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

    }

    return AV_NOPTS_VALUE;

}

    int i, hour, min, sec, hsec;     int he, me, se, mse;         int64_t start, end;                    &hour, &min, &sec, &hsec, &he, &me, &se, &mse) == 8) {             min += 60*hour;             sec += 60*min;             start = sec*1000+hsec;             me += 60*he;             se += 60*me;             end = se*1000+mse;
static int64_t FUNC_0(const char *buf, int *duration)

{

    int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4;

    int VAR_5, VAR_6, VAR_7, VAR_8;



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

        int64_t start, end;

        if (sscanf(buf, "%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d",

                   &VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) == 8) {

            VAR_2 += 60*VAR_1;

            VAR_3 += 60*VAR_2;

            start = VAR_3*1000+VAR_4;

            VAR_6 += 60*VAR_5;

            VAR_7 += 60*VAR_6;

            end = VAR_7*1000+VAR_8;

            *duration = end - start;

            return start;

        }

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

    }

    return AV_NOPTS_VALUE;

}

static int64_t FUNC_0(const char *buf, int *duration)
{ int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8; for (VAR_0=0; VAR_0<2; VAR_0++) { int64_t start, end; if (sscanf(buf, "%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d",
&VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) == 8) { VAR_2 += 60*VAR_1; VAR_3 += 60*VAR_2; start = VAR_3*1000+VAR_4; VAR_6 += 60*VAR_5; VAR_7 += 60*VAR_6; end = VAR_7*1000+VAR_8; *duration = end - start; return start; } buf += strcspn(buf, "\n") + 1; } return AV_NOPTS_VALUE; }