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

libavfilter/avfilter.c:531:9: Unknown value from: non-const function
529. 
530.     if (filter->filter->uninit)
531.         filter->filter->uninit(filter);
             ^
532. 
533.     for (i = 0; i < filter->input_count; i++) {

libavfilter/avfilter.c:537:13: Call
535.             if (link->src)
536.                 link->src->outputs[link->srcpad - link->src->output_pads] = NULL;
537.             avfilter_formats_unref(&link->in_formats);
                 ^
538.             avfilter_formats_unref(&link->out_formats);
539.         }

libavfilter/formats.c:137:1: <LHS trace>
135. }
136. 
137. void avfilter_formats_unref(AVFilterFormats **ref)
     ^
138. {
139.     int idx;

libavfilter/formats.c:137:1: Parameter `(*ref)->refcount`
  135. }
  136. 
  137. void avfilter_formats_unref(AVFilterFormats **ref)
       ^
  138. {
  139.     int idx;

libavfilter/formats.c:144:11: Call
  142.         return;
  143. 
  144.     idx = find_ref_index(ref);
                 ^
  145. 
  146.     if(idx >= 0)

libavfilter/formats.c:128:1: Parameter `(*ref)->refcount`
    126. }
    127. 
    128. static int find_ref_index(AVFilterFormats **ref)
         ^
    129. {
    130.     int i;

libavfilter/formats.c:150:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avfilter_formats_unref` 
  148.             sizeof(AVFilterFormats**) * ((*ref)->refcount-idx-1));
  149. 
  150.     if(!--(*ref)->refcount) {
               ^
  151.         av_free((*ref)->formats);
  152.         av_free((*ref)->refs);
