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

ffmpeg.c:533:13: Assignment
531.             st->stream_copy = 1;
532.         else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && video_stream_copy)
533.             st->stream_copy = 1;
                 ^
534. 
535.         if(!st->codec->thread_count)

ffmpeg.c:547:5: Call
545.         s->timestamp = av_gettime();
546. 
547.     av_close_input_file(ic);
         ^
548.     return 0;
549. }

libavformat/utils.c:2445:1: Parameter `s->nb_programs`
  2443. }
  2444. 
  2445. void av_close_input_file(AVFormatContext *s)
        ^
  2446. {
  2447.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2448:5: Call
  2446. {
  2447.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2448.     av_close_input_stream(s);
            ^
  2449.     if (pb)
  2450.         url_fclose(pb);

libavformat/utils.c:2397:1: <LHS trace>
2395. }
2396. 
2397. void av_close_input_stream(AVFormatContext *s)
      ^
2398. {
2399.     int i;

libavformat/utils.c:2397:1: Parameter `s->nb_programs`
    2395. }
    2396. 
    2397. void av_close_input_stream(AVFormatContext *s)
          ^
    2398. {
    2399.     int i;

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