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

ffmpeg.c:728:17: Assignment
726.         if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
727.             if (audio_stream_copy) {
728.                 st->stream_copy = 1;
                     ^
729.             } else
730.                 choose_sample_fmt(st, codec);

ffmpeg.c:750:5: Call
748.         s->timestamp = av_gettime();
749. 
750.     av_close_input_file(ic);
         ^
751.     return 0;
752. }

libavformat/utils.c:2493:1: Parameter `s->nb_programs`
  2491. }
  2492. 
  2493. void av_close_input_file(AVFormatContext *s)
        ^
  2494. {
  2495.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2496:5: Call
  2494. {
  2495.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2496.     av_close_input_stream(s);
            ^
  2497.     if (pb)
  2498.         url_fclose(pb);

libavformat/utils.c:2445:1: <LHS trace>
2443. }
2444. 
2445. void av_close_input_stream(AVFormatContext *s)
      ^
2446. {
2447.     int i;

libavformat/utils.c:2445:1: Parameter `s->nb_programs`
    2443. }
    2444. 
    2445. void av_close_input_stream(AVFormatContext *s)
          ^
    2446. {
    2447.     int i;

libavformat/utils.c:2469:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
    2467.         av_free(st);
    2468.     }
    2469.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2470. #if FF_API_OLD_METADATA
    2471.         av_freep(&s->programs[i]->provider_name);
