45 if ((num == i || num + 1 == i)
46 && buf[0] >=
'0' && buf[1] <=
'9' && strstr(buf,
" --> ")
47 && sscanf(buf,
"%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)
60 int hh1, mm1, ss1, ms1;
61 int hh2, mm2, ss2, ms2;
62 if (sscanf(*buf,
"%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d"
63 "%*[ ]X1:%u X2:%u Y1:%u Y2:%u",
64 &hh1, &mm1, &ss1, &ms1,
65 &hh2, &mm2, &ss2, &ms2,
66 x1, x2, y1, y2) >= 8) {
67 int64_t
start = (hh1*3600LL + mm1*60LL + ss1) * 1000LL + ms1;
68 int64_t
end = (hh2*3600LL + mm2*60LL + ss2) * 1000LL + ms2;
69 *duration = end -
start;
102 const char *ptr = buf.str;
103 int32_t x1 = -1, y1 = -1, x2 = -1, y2 = -1;
106 pts =
get_pts(&ptr, &duration, &x1, &y1, &x2, &y2);
108 int len = buf.len - (ptr - buf.str);
146 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
150 min_ts, ts, max_ts, flags);