MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / mux_alloc

Function mux_alloc

fftools/ffmpeg_mux_init.c:3315–3328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3313};
3314
3315static Muxer *mux_alloc(void)
3316{
3317 Muxer *mux = allocate_array_elem(&output_files, sizeof(*mux), &nb_output_files);
3318
3319 if (!mux)
3320 return NULL;
3321
3322 mux->of.class = &output_file_class;
3323 mux->of.index = nb_output_files - 1;
3324
3325 snprintf(mux->log_name, sizeof(mux->log_name), "out#%d", mux->of.index);
3326
3327 return mux;
3328}
3329
3330int of_open(const OptionsContext *o, const char *filename, Scheduler *sch)
3331{

Callers 1

of_openFunction · 0.85

Calls 1

allocate_array_elemFunction · 0.85

Tested by

no test coverage detected