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

libavfilter/avfilter.c:516:9: Unknown value from: non-const function
514. 
515.     if (filter->filter->uninit)
516.         filter->filter->uninit(filter);
             ^
517. 
518.     for (i = 0; i < filter->nb_inputs; i++) {

libavfilter/avfilter.c:522:9: Call
520.     }
521.     for (i = 0; i < filter->nb_outputs; i++) {
522.         free_link(filter->outputs[i]);
             ^
523.     }
524. 

libavfilter/avfilter.c:487:1: Parameter `link->in_formats->refcount`
  485. #endif
  486. 
  487. static void free_link(AVFilterLink *link)
       ^
  488. {
  489.     if (!link)

libavfilter/avfilter.c:499:5: Call
  497.     av_buffer_unref(&link->hw_frames_ctx);
  498. 
  499.     ff_formats_unref(&link->in_formats);
           ^
  500.     ff_formats_unref(&link->out_formats);
  501.     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. 
