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

Function free_representation

libavformat/dashdec.c:354–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354static void free_representation(struct representation *pls)
355{
356 free_fragment_list(pls);
357 free_timelines_list(pls);
358 free_fragment(&pls->cur_seg);
359 free_fragment(&pls->init_section);
360 av_freep(&pls->init_sec_buf);
361 av_freep(&pls->pb.pub.buffer);
362 ff_format_io_close(pls->parent, &pls->input);
363 if (pls->ctx) {
364 pls->ctx->pb = NULL;
365 avformat_close_input(&pls->ctx);
366 }
367
368 av_freep(&pls->url_template);
369 av_freep(&pls->lang);
370 av_freep(&pls->id);
371 av_freep(&pls);
372}
373
374static void free_video_list(DASHContext *c)
375{

Callers 4

free_video_listFunction · 0.85
free_audio_listFunction · 0.85
free_subtitle_listFunction · 0.85

Calls 6

free_fragment_listFunction · 0.85
free_timelines_listFunction · 0.85
free_fragmentFunction · 0.85
av_freepFunction · 0.85
ff_format_io_closeFunction · 0.85
avformat_close_inputFunction · 0.85

Tested by

no test coverage detected