| 1856 | }; |
| 1857 | |
| 1858 | static Demuxer *demux_alloc(void) |
| 1859 | { |
| 1860 | Demuxer *d = allocate_array_elem(&input_files, sizeof(*d), &nb_input_files); |
| 1861 | |
| 1862 | if (!d) |
| 1863 | return NULL; |
| 1864 | |
| 1865 | d->f.class = &input_file_class; |
| 1866 | d->f.index = nb_input_files - 1; |
| 1867 | |
| 1868 | snprintf(d->log_name, sizeof(d->log_name), "in#%d", d->f.index); |
| 1869 | |
| 1870 | return d; |
| 1871 | } |
| 1872 | |
| 1873 | int ifile_open(const OptionsContext *o, const char *filename, Scheduler *sch) |
| 1874 | { |
no test coverage detected