static int64_t read_ts(const char *s)

{

    int hh, mm, ss, ms;

    if (sscanf(s, "%u:%u:%u.%u", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms;

    if (sscanf(s,    "%u:%u.%u",      &mm, &ss, &ms) == 3) return (          mm*60 + ss) * 1000 + ms;

    return AV_NOPTS_VALUE;

}

static int64_t read_ts(const char *s)

{

    int hh, mm, ss, ms;

    if (sscanf(s, "%u:%u:%u.%u", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms;

    if (sscanf(s,    "%u:%u.%u",      &mm, &ss, &ms) == 3) return (          mm*60 + ss) * 1000 + ms;

    return AV_NOPTS_VALUE;

}

    if (sscanf(s, "%u:%u:%u.%u", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms;     if (sscanf(s,    "%u:%u.%u",      &mm, &ss, &ms) == 3) return (          mm*60 + ss) * 1000 + ms;
static int64_t FUNC_0(const char *s)

{

    int VAR_0, VAR_1, VAR_2, VAR_3;

    if (sscanf(s, "%u:%u:%u.%u", &VAR_0, &VAR_1, &VAR_2, &VAR_3) == 4) return (VAR_0*3600 + VAR_1*60 + VAR_2) * 1000 + VAR_3;

    if (sscanf(s,    "%u:%u.%u",      &VAR_1, &VAR_2, &VAR_3) == 3) return (          VAR_1*60 + VAR_2) * 1000 + VAR_3;

    return AV_NOPTS_VALUE;

}

static int64_t FUNC_0(const char *s)
{ int VAR_0, VAR_1, VAR_2, VAR_3; if (sscanf(s, "%u:%u:%u.%u", &VAR_0, &VAR_1, &VAR_2, &VAR_3) == 4) return (VAR_0*3600 + VAR_1*60 + VAR_2) * 1000 + VAR_3; if (sscanf(s,    "%u:%u.%u",      &VAR_1, &VAR_2, &VAR_3) == 3) return (          VAR_1*60 + VAR_2) * 1000 + VAR_3; return AV_NOPTS_VALUE; }