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

ffmpeg.c:447:13: Assignment
445. 
446.         if (st->codec->codec_type == CODEC_TYPE_AUDIO && audio_stream_copy)
447.             st->stream_copy = 1;
                 ^
448.         else if (st->codec->codec_type == CODEC_TYPE_VIDEO && video_stream_copy)
449.             st->stream_copy = 1;

ffmpeg.c:463:5: Call
461.         s->timestamp = av_gettime();
462. 
463.     av_close_input_file(ic);
         ^
464.     return 0;
465. }

libavformat/utils.c:2237:1: Parameter `s->nb_programs`
  2235. }
  2236. 
  2237. void av_close_input_file(AVFormatContext *s)
        ^
  2238. {
  2239.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2240:5: Call
  2238. {
  2239.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2240.     av_close_input_stream(s);
            ^
  2241.     if (pb)
  2242.         url_fclose(pb);

libavformat/utils.c:2196:1: <LHS trace>
2194. }
2195. 
2196. void av_close_input_stream(AVFormatContext *s)
      ^
2197. {
2198.     int i;

libavformat/utils.c:2196:1: Parameter `s->nb_programs`
    2194. }
    2195. 
    2196. void av_close_input_stream(AVFormatContext *s)
          ^
    2197. {
    2198.     int i;

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