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

Function avcodec_free_context

libavcodec/options.c:164–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void avcodec_free_context(AVCodecContext **pavctx)
165{
166 AVCodecContext *avctx = *pavctx;
167
168 if (!avctx)
169 return;
170
171 ff_codec_close(avctx);
172
173 av_freep(&avctx->extradata);
174 av_freep(&avctx->subtitle_header);
175 av_freep(&avctx->intra_matrix);
176 av_freep(&avctx->chroma_intra_matrix);
177 av_freep(&avctx->inter_matrix);
178 av_freep(&avctx->rc_override);
179 av_channel_layout_uninit(&avctx->ch_layout);
180
181 av_freep(pavctx);
182}
183
184const AVClass *avcodec_get_class(void)
185{

Callers 15

LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
ds_freeFunction · 0.85
codec_closeFunction · 0.85
flac_closeFunction · 0.85
dump_stream_formatFunction · 0.85
dump_stream_groupFunction · 0.85
ff_free_streamFunction · 0.85
dash_freeFunction · 0.85
old_flac_headerFunction · 0.85
enc_freeFunction · 0.85

Calls 3

ff_codec_closeFunction · 0.85
av_freepFunction · 0.85
av_channel_layout_uninitFunction · 0.85

Tested by 7

mainFunction · 0.68
mainFunction · 0.68
video_decodeFunction · 0.68
seek_testFunction · 0.68
dump_stream_metaFunction · 0.68
mainFunction · 0.68
video_decode_exampleFunction · 0.68