46 strtol(buf, &pbuf, 10) < 0 || *pbuf)
52 if (buf[0] >=
'0' && buf[1] <=
'9' && strstr(buf,
" --> ")
53 && sscanf(buf,
"%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)
65 int hh1, mm1, ss1, ms1;
66 int hh2, mm2, ss2, ms2;
67 if (sscanf(*buf,
"%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d"
68 "%*[ ]X1:%u X2:%u Y1:%u Y2:%u",
69 &hh1, &mm1, &ss1, &ms1,
70 &hh2, &mm2, &ss2, &ms2,
71 x1, x2, y1, y2) >= 8) {
72 int64_t
start = (hh1*3600LL + mm1*60LL + ss1) * 1000LL + ms1;
73 int64_t
end = (hh2*3600LL + mm2*60LL + ss2) * 1000LL + ms2;
74 *duration = end -
start;
107 const char *ptr = buf.str;
108 int32_t x1 = -1, y1 = -1, x2 = -1, y2 = -1;
111 pts =
get_pts(&ptr, &duration, &x1, &y1, &x2, &y2);
113 int len = buf.len - (ptr - buf.str);
151 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
155 min_ts, ts, max_ts, flags);