34 const unsigned char *ptr = p->
buf;
40 while (*ptr ==
'\r' || *ptr ==
'\n')
43 if ((num == i || num + 1 == i)
44 && sscanf(ptr,
"%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)
58 int hh1, mm1, ss1, ms1;
59 int hh2, mm2, ss2, ms2;
60 if (sscanf(*buf,
"%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d"
61 "%*[ ]X1:%u X2:%u Y1:%u Y2:%u",
62 &hh1, &mm1, &ss1, &ms1,
63 &hh2, &mm2, &ss2, &ms2,
64 x1, x2, y1, y2) >= 8) {
65 int64_t
start = (hh1*3600LL + mm1*60LL + ss1) * 1000LL + ms1;
66 int64_t
end = (hh2*3600LL + mm2*60LL + ss2) * 1000LL + ms2;
67 *duration = end -
start;
98 const char *ptr = buf.str;
99 int32_t x1 = -1, y1 = -1, x2 = -1, y2 = -1;
102 pts =
get_pts(&ptr, &duration, &x1, &y1, &x2, &y2);
104 int len = buf.len - (ptr - buf.str);
142 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
146 min_ts, ts, max_ts, flags);