libavfilter/avfilter.c:469: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `free_link`.

libavfilter/avfilter.c:463:9: Unknown value from: non-const function
461. 
462.     if (filter->filter->uninit)
463.         filter->filter->uninit(filter);
             ^
464. 
465.     for (i = 0; i < filter->nb_inputs; i++) {

libavfilter/avfilter.c:469:9: Call
467.     }
468.     for (i = 0; i < filter->nb_outputs; i++) {
469.         free_link(filter->outputs[i]);
             ^
470.     }
471. 

libavfilter/avfilter.c:436:1: Parameter `link->in_formats->refcount`
  434. #endif
  435. 
  436. static void free_link(AVFilterLink *link)
       ^
  437. {
  438.     if (!link)

libavfilter/avfilter.c:446:5: Call
  444.         link->dst->inputs[link->dstpad - link->dst->input_pads] = NULL;
  445. 
  446.     ff_formats_unref(&link->in_formats);
           ^
  447.     ff_formats_unref(&link->out_formats);
  448.     ff_formats_unref(&link->in_samplerates);

libavfilter/formats.c:298:1: <LHS trace>
296. } while (0)
297. 
298. void ff_formats_unref(AVFilterFormats **ref)
     ^
299. {
300.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:298:1: Parameter `(*ref)->refcount`
    296. } while (0)
    297. 
    298. void ff_formats_unref(AVFilterFormats **ref)
         ^
    299. {
    300.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:300:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `free_link` 
    298. void ff_formats_unref(AVFilterFormats **ref)
    299. {
    300.     FORMATS_UNREF(ref, formats);
             ^
    301. }
    302. 

void ff_formats_unref(AVFilterFormats **ref)
{
    FORMATS_UNREF(ref, formats);
}
['void avfilter_free(AVFilterContext *filter)\n{\n    int i;\n    if (filter->graph)\n        ff_filter_graph_remove_filter(filter->graph, filter);\n    if (filter->filter->uninit)\n        filter->filter->uninit(filter);\n    for (i = 0; i < filter->nb_inputs; i++) {\n        free_link(filter->inputs[i]);\n    }\n    for (i = 0; i < filter->nb_outputs; i++) {\n        free_link(filter->outputs[i]);\n    }\n    if (filter->filter->priv_class)\n        av_opt_free(filter->priv);\n    av_freep(&filter->name);\n    av_freep(&filter->input_pads);\n    av_freep(&filter->output_pads);\n    av_freep(&filter->inputs);\n    av_freep(&filter->outputs);\n    av_freep(&filter->priv);\n    av_free(filter);\n}', 'static void free_link(AVFilterLink *link)\n{\n    if (!link)\n        return;\n    if (link->src)\n        link->src->outputs[link->srcpad - link->src->output_pads] = NULL;\n    if (link->dst)\n        link->dst->inputs[link->dstpad - link->dst->input_pads] = NULL;\n    ff_formats_unref(&link->in_formats);\n    ff_formats_unref(&link->out_formats);\n    ff_formats_unref(&link->in_samplerates);\n    ff_formats_unref(&link->out_samplerates);\n    ff_channel_layouts_unref(&link->in_channel_layouts);\n    ff_channel_layouts_unref(&link->out_channel_layouts);\n    av_freep(&link);\n}', 'void ff_formats_unref(AVFilterFormats **ref)\n{\n    FORMATS_UNREF(ref, formats);\n}']