40 const unsigned char *ptr = p->
buf;
42 if (sscanf(ptr,
"%"PRId64
",%"PRId64
",%c", &start, &end, &c) == 3) {
43 size_t q1pos = strcspn(ptr,
"\"");
44 size_t q2pos = q1pos + strcspn(ptr + q1pos + 1,
"\"") + 1;
45 if (strcspn(ptr,
"\r\n") > q2pos)
55 if (sscanf(*line,
"%"PRId64
",%"PRId64, &start, &end) == 2) {
56 *line += strcspn(*line,
"\"") + 1;
57 *duration = end - start;
86 line[strcspn(line,
"\r\n")] = 0;
88 pts_start =
read_ts(&p, &duration);
92 p[strcspn(p,
"\"")] = 0;
113 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
117 min_ts, ts, max_ts, flags);