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

ffmpeg.c:534:17: Assignment
532.         if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
533.             if (audio_stream_copy) {
534.                 st->stream_copy = 1;
                     ^
535.             } else
536.                 choose_sample_fmt(st, codec);

ffmpeg.c:556:5: Call
554.         s->timestamp = av_gettime();
555. 
556.     av_close_input_file(ic);
         ^
557.     return 0;
558. }

libavformat/utils.c:2451:1: Parameter `s->nb_programs`
  2449. }
  2450. 
  2451. void av_close_input_file(AVFormatContext *s)
        ^
  2452. {
  2453.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2454:5: Call
  2452. {
  2453.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2454.     av_close_input_stream(s);
            ^
  2455.     if (pb)
  2456.         url_fclose(pb);

libavformat/utils.c:2403:1: <LHS trace>
2401. }
2402. 
2403. void av_close_input_stream(AVFormatContext *s)
      ^
2404. {
2405.     int i;

libavformat/utils.c:2403:1: Parameter `s->nb_programs`
    2401. }
    2402. 
    2403. void av_close_input_stream(AVFormatContext *s)
          ^
    2404. {
    2405.     int i;

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