libavfilter/avfilter.c:466: 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:466:9: Call
464. 
465.     for (i = 0; i < filter->nb_inputs; i++) {
466.         free_link(filter->inputs[i]);
             ^
467.     }
468.     for (i = 0; i < filter->nb_outputs; i++) {

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. 
