ffmpeg.c:409: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `av_close_input_file`.

ffmpeg.c:409:9: Call
407.     }
408.     for(i=0;i<nb_input_files;i++)
409.         av_close_input_file(input_files[i]);
             ^
410. 
411.     av_free(intra_matrix);

libavformat/utils.c:2334:1: Parameter `s->nb_programs`
  2332. }
  2333. 
  2334. void av_close_input_file(AVFormatContext *s)
        ^
  2335. {
  2336.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2337:5: Call
  2335. {
  2336.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2337.     av_close_input_stream(s);
            ^
  2338.     if (pb)
  2339.         url_fclose(pb);

libavformat/utils.c:2286:1: <LHS trace>
2284. }
2285. 
2286. void av_close_input_stream(AVFormatContext *s)
      ^
2287. {
2288.     int i;

libavformat/utils.c:2286:1: Parameter `s->nb_programs`
    2284. }
    2285. 
    2286. void av_close_input_stream(AVFormatContext *s)
          ^
    2287. {
    2288.     int i;

libavformat/utils.c:2310:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
    2308.         av_free(st);
    2309.     }
    2310.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2311. #if LIBAVFORMAT_VERSION_INT < (53<<16)
    2312.         av_freep(&s->programs[i]->provider_name);
