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

libavfilter/avfilter.c:493:9: Unknown value from: non-const function
491. 
492.     if (filter->filter->uninit)
493.         filter->filter->uninit(filter);
             ^
494. 
495.     for (i = 0; i < filter->nb_inputs; i++) {

libavfilter/avfilter.c:496:9: Call
494. 
495.     for (i = 0; i < filter->nb_inputs; i++) {
496.         free_link(filter->inputs[i]);
             ^
497.     }
498.     for (i = 0; i < filter->nb_outputs; i++) {

libavfilter/avfilter.c:464:1: Parameter `link->in_formats->refcount`
  462. }
  463. 
  464. static void free_link(AVFilterLink *link)
       ^
  465. {
  466.     if (!link)

libavfilter/avfilter.c:476:5: Call
  474.     av_buffer_unref(&link->hw_frames_ctx);
  475. 
  476.     ff_formats_unref(&link->in_formats);
           ^
  477.     ff_formats_unref(&link->out_formats);
  478.     ff_formats_unref(&link->in_samplerates);

libavfilter/formats.c:312:1: <LHS trace>
310. } while (0)
311. 
312. void ff_formats_unref(AVFilterFormats **ref)
     ^
313. {
314.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:312:1: Parameter `(*ref)->refcount`
    310. } while (0)
    311. 
    312. void ff_formats_unref(AVFilterFormats **ref)
         ^
    313. {
    314.     FORMATS_UNREF(ref, formats);

libavfilter/formats.c:314:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `free_link` 
    312. void ff_formats_unref(AVFilterFormats **ref)
    313. {
    314.     FORMATS_UNREF(ref, formats);
             ^
    315. }
    316. 
