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

Function avformat_init_output

libavformat/mux.c:446–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446int avformat_init_output(AVFormatContext *s, AVDictionary **options)
447{
448 FormatContextInternal *const fci = ff_fc_internal(s);
449 int ret = 0;
450
451 if ((ret = init_muxer(s, options)) < 0)
452 return ret;
453
454 fci->initialized = 1;
455 fci->streams_initialized = ret;
456
457 if (ffofmt(s->oformat)->init && ret) {
458 if ((ret = init_pts(s)) < 0)
459 return ret;
460
461 return AVSTREAM_INIT_IN_INIT_OUTPUT;
462 }
463
464 return AVSTREAM_INIT_IN_WRITE_HEADER;
465}
466
467int avformat_write_header(AVFormatContext *s, AVDictionary **options)
468{

Callers 5

hls_mux_initFunction · 0.85
webm_chunk_initFunction · 0.85
seg_initFunction · 0.85
avformat_write_headerFunction · 0.85
dash_initFunction · 0.85

Calls 3

init_muxerFunction · 0.85
ffofmtFunction · 0.85
init_ptsFunction · 0.85

Tested by

no test coverage detected