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

ffmpeg.c:379:11: Call
377.     AVFormatContext *ic;
378. 
379.     err = av_open_input_file(&ic, filename, NULL, FFM_PACKET_SIZE, NULL);
               ^
380.     if (err < 0)
381.         return err;

libavformat/utils.c:416:1: Parameter `(*ic_ptr)->filename.strlen`
  414. #define PROBE_BUF_MAX (1<<20)
  415. 
  416. int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
       ^
  417.                        AVInputFormat *fmt,
  418.                        int buf_size,

ffmpeg.c:395:5: Call
393.     }
394. 
395.     av_close_input_file(ic);
         ^
396.     return 0;
397. }

libavformat/utils.c:2152:1: Parameter `s->nb_programs`
  2150. }
  2151. 
  2152. void av_close_input_file(AVFormatContext *s)
        ^
  2153. {
  2154.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2155:5: Call
  2153. {
  2154.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2155.     av_close_input_stream(s);
            ^
  2156.     if (pb)
  2157.         url_fclose(pb);

libavformat/utils.c:2118:1: <LHS trace>
2116. }
2117. 
2118. void av_close_input_stream(AVFormatContext *s)
      ^
2119. {
2120.     int i;

libavformat/utils.c:2118:1: Parameter `s->nb_programs`
    2116. }
    2117. 
    2118. void av_close_input_stream(AVFormatContext *s)
          ^
    2119. {
    2120.     int i;

libavformat/utils.c:2141:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
    2139.         av_free(st);
    2140.     }
    2141.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2142.         av_freep(&s->programs[i]->provider_name);
    2143.         av_freep(&s->programs[i]->name);
