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

Function free_link

libavfilter/avfilter.c:774–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774static void free_link(AVFilterLink *link)
775{
776 if (!link)
777 return;
778
779 if (link->src)
780 link->src->outputs[link->srcpad - link->src->output_pads] = NULL;
781 if (link->dst)
782 link->dst->inputs[link->dstpad - link->dst->input_pads] = NULL;
783
784 ff_formats_unref(&link->incfg.formats);
785 ff_formats_unref(&link->outcfg.formats);
786 ff_formats_unref(&link->incfg.color_spaces);
787 ff_formats_unref(&link->outcfg.color_spaces);
788 ff_formats_unref(&link->incfg.color_ranges);
789 ff_formats_unref(&link->outcfg.color_ranges);
790 ff_formats_unref(&link->incfg.alpha_modes);
791 ff_formats_unref(&link->outcfg.alpha_modes);
792 ff_formats_unref(&link->incfg.samplerates);
793 ff_formats_unref(&link->outcfg.samplerates);
794 ff_channel_layouts_unref(&link->incfg.channel_layouts);
795 ff_channel_layouts_unref(&link->outcfg.channel_layouts);
796 link_free(&link);
797}
798
799void avfilter_free(AVFilterContext *filter)
800{

Callers 1

avfilter_freeFunction · 0.85

Calls 3

ff_formats_unrefFunction · 0.85
ff_channel_layouts_unrefFunction · 0.85
link_freeFunction · 0.85

Tested by

no test coverage detected