Lines Matching refs:line
44 /* Check if the first non-empty line is a number. We do not check what the
52 /* Check if the next line matches a SRT timestamp */
72 static int get_event_info(const char *line, struct event_info *ei)
80 if (sscanf(line, "%d:%d:%d%*1[,.]%d --> %d:%d:%d%*1[,.]%d"
132 char line[4096], line_cache[4096];
151 ptrdiff_t len = ff_subtitles_read_line(&tr, line, sizeof(line));
156 if (!len || !line[0])
159 if (get_event_info(line, &tmp_ei) < 0) {
166 /* We got some cache and a new line so we assume the cached
167 * line was actually part of the payload */
172 /* If the line doesn't start with a number, we assume it's part of
176 if (strtol(line, &pline, 10) < 0 || line == pline)
177 av_bprintf(&buf, "%s\n", line);
179 strcpy(line_cache, line);
183 * queue. We insert the cached line if and only if the payload
184 * is empty and the cached line is not a standalone number. */