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

ffmpeg.c:645:17: Unknown value from: choose_pixel_fmt
643.                 st->stream_copy = 1;
644.             } else
645.                 choose_pixel_fmt(st, codec);
                     ^
646.         }
647. 

ffmpeg.c:657:5: Call
655.         s->timestamp = av_gettime();
656. 
657.     av_close_input_file(ic);
         ^
658.     return 0;
659. }

libavformat/utils.c:2570:1: Parameter `s->nb_programs`
  2568. }
  2569. 
  2570. void av_close_input_file(AVFormatContext *s)
        ^
  2571. {
  2572.     AVIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2573:5: Call
  2571. {
  2572.     AVIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2573.     av_close_input_stream(s);
            ^
  2574.     if (pb)
  2575.         avio_close(pb);

libavformat/utils.c:2524:1: Parameter `s->nb_programs`
    2522. }
    2523. 
    2524. void av_close_input_stream(AVFormatContext *s)
          ^
    2525. {
    2526.     flush_packet_queue(s);

libavformat/utils.c:2529:5: Call
    2527.     if (s->iformat->read_close)
    2528.         s->iformat->read_close(s);
    2529.     avformat_free_context(s);
              ^
    2530. }
    2531. 

libavformat/utils.c:2532:1: <LHS trace>
2530. }
2531. 
2532. void avformat_free_context(AVFormatContext *s)
      ^
2533. {
2534.     int i;

libavformat/utils.c:2532:1: Parameter `s->nb_programs`
      2530. }
      2531. 
      2532. void avformat_free_context(AVFormatContext *s)
            ^
      2533. {
      2534.     int i;

libavformat/utils.c:2553:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
      2551.         av_free(st);
      2552.     }
      2553.     for(i=s->nb_programs-1; i>=0; i--) {
                    ^
      2554.         av_metadata_free(&s->programs[i]->metadata);
      2555.         av_freep(&s->programs[i]->stream_index);
