40 const unsigned char *ptr = p->
buf;
42 if (sscanf(ptr,
"%"SCNd64
",%"SCNd64
",%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,
"%"SCNd64
",%"SCNd64, &start, &end) == 2) {
56 *line += strcspn(*line,
"\"");
58 *duration = end -
start;
87 line[strcspn(line,
"\r\n")] = 0;
89 pts_start =
read_ts(&p, &duration);
93 p[strcspn(p,
"\"")] = 0;
114 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
118 min_ts, ts, max_ts, flags);