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

Function avformat_alloc_context

libavformat/options.c:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81AVFormatContext *avformat_alloc_context(void)
82{
83 AVFormatContext *ic;
84 ic = av_malloc(sizeof(AVFormatContext));
85 if (!ic) return ic;
86 avformat_get_context_defaults(ic);
87 ic->av_class = &av_format_context_class;
88 return ic;
89}
90
91#if LIBAVFORMAT_VERSION_MAJOR < 53
92AVFormatContext *av_alloc_format_context(void)

Callers 14

opt_input_fileFunction · 0.85
opt_output_fileFunction · 0.85
mainFunction · 0.85
decode_threadFunction · 0.85
mainFunction · 0.85
open_input_fileFunction · 0.85
prepare_sdp_descriptionFunction · 0.85
rtp_new_av_streamFunction · 0.85
av_alloc_format_contextFunction · 0.85
mov_read_stsdFunction · 0.85
ff_mov_init_hintingFunction · 0.85
av_open_input_streamFunction · 0.85

Calls 2

av_mallocFunction · 0.85

Tested by

no test coverage detected