45 char *ret = *cursor += strspn(*cursor,
SPACE_CHARS);
54 #define FAIL(retcode) do { ret = (retcode); goto fail; } while(0)
57 unsigned *nb_files_alloc)
64 url_len = strlen(avf->
filename) + strlen(filename) + 16;
70 if (cat->
nb_files >= *nb_files_alloc) {
71 size_t n =
FFMAX(*nb_files_alloc * 2, 16);
73 if (n <= cat->nb_files || n > SIZE_MAX /
sizeof(*cat->
files) ||
76 cat->
files = new_files;
81 memset(file, 0,
sizeof(*file));
128 int ret,
line = 0, i;
129 unsigned nb_files_alloc = 0;
139 if (!*keyword || *keyword ==
'#')
142 if (!strcmp(keyword,
"file")) {
148 if ((ret =
add_file(avf, filename, &file, &nb_files_alloc)) < 0)
167 st->r_frame_rate = source_st->r_frame_rate;