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

ffmpeg.c:470:13: Assignment
468.             st->stream_copy = 1;
469.         else if (st->codec->codec_type == CODEC_TYPE_VIDEO && video_stream_copy)
470.             st->stream_copy = 1;
                 ^
471. 
472.         if(!st->codec->thread_count)

ffmpeg.c:484:5: Call
482.         s->timestamp = av_gettime();
483. 
484.     av_close_input_file(ic);
         ^
485.     return 0;
486. }

libavformat/utils.c:2263:1: Parameter `s->nb_programs`
  2261. }
  2262. 
  2263. void av_close_input_file(AVFormatContext *s)
        ^
  2264. {
  2265.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2266:5: Call
  2264. {
  2265.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2266.     av_close_input_stream(s);
            ^
  2267.     if (pb)
  2268.         url_fclose(pb);

libavformat/utils.c:2218:1: <LHS trace>
2216. }
2217. 
2218. void av_close_input_stream(AVFormatContext *s)
      ^
2219. {
2220.     int i;

libavformat/utils.c:2218:1: Parameter `s->nb_programs`
    2216. }
    2217. 
    2218. void av_close_input_stream(AVFormatContext *s)
          ^
    2219. {
    2220.     int i;

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