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

libavfilter/avfilter.c:377:9: Unknown value from: non-const function
375. 
376.     if (filter->filter->uninit)
377.         filter->filter->uninit(filter);
             ^
378. 
379.     for (i = 0; i < filter->input_count; i++) {

libavfilter/avfilter.c:383:13: Call
381.             if (link->src)
382.                 link->src->outputs[link->srcpad - link->src->output_pads] = NULL;
383.             ff_formats_unref(&link->in_formats);
                 ^
384.             ff_formats_unref(&link->out_formats);
385.             ff_formats_unref(&link->in_samplerates);

libavfilter/formats.c:283:1: <LHS trace>
281. } while (0)
282. 
283. void ff_formats_unref(AVFilterFormats **ref)
     ^
284. {
285.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:283:1: Parameter `(*ref)->refcount`
  281. } while (0)
  282. 
  283. void ff_formats_unref(AVFilterFormats **ref)
       ^
  284. {
  285.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:285:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `ff_formats_unref` 
  283. void ff_formats_unref(AVFilterFormats **ref)
  284. {
  285.     FORMATS_UNREF(ref, formats);
           ^
  286. }
  287. 

void ff_formats_unref(AVFilterFormats **ref)
{
    FORMATS_UNREF(ref, formats);
}
['void avfilter_free(AVFilterContext *filter)\n{\n    int i;\n    AVFilterLink *link;\n    if (filter->filter->uninit)\n        filter->filter->uninit(filter);\n    for (i = 0; i < filter->input_count; i++) {\n        if ((link = filter->inputs[i])) {\n            if (link->src)\n                link->src->outputs[link->srcpad - link->src->output_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        }\n        av_freep(&link);\n    }\n    for (i = 0; i < filter->output_count; i++) {\n        if ((link = filter->outputs[i])) {\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        }\n        av_freep(&link);\n    }\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}', 'void ff_formats_unref(AVFilterFormats **ref)\n{\n    FORMATS_UNREF(ref, formats);\n}']