| 772 | } |
| 773 | |
| 774 | static 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 | |
| 799 | void avfilter_free(AVFilterContext *filter) |
| 800 | { |
no test coverage detected