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

Function ds_free

tools/decode_simple.c:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void ds_free(DecodeContext *dc)
110{
111 av_dict_free(&dc->decoder_opts);
112
113 av_frame_free(&dc->frame);
114 av_packet_free(&dc->pkt);
115
116 avcodec_free_context(&dc->decoder);
117 avformat_close_input(&dc->demuxer);
118}
119
120int ds_open(DecodeContext *dc, const char *url, int stream_idx)
121{

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ds_openFunction · 0.85

Calls 5

av_dict_freeFunction · 0.85
av_frame_freeFunction · 0.85
av_packet_freeFunction · 0.85
avcodec_free_contextFunction · 0.85
avformat_close_inputFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68