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

ffmpeg.c:678:11: Call
676.     int nopts = 0;
677. 
678.     err = avformat_open_input(&ic, filename, NULL, NULL);
               ^
679.     if (err < 0)
680.         return err;

libavformat/utils.c:585:1: Parameter `(*ps)->nb_programs`
  583. }
  584. 
  585. int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
       ^
  586. {
  587.     AVFormatContext *s = *ps;

libavformat/utils.c:655:5: Call
  653.     if (s->pb && !(s->flags & AVFMT_FLAG_CUSTOM_IO))
  654.         avio_close(s->pb);
  655.     avformat_free_context(s);
           ^
  656.     *ps = NULL;
  657.     return ret;

libavformat/utils.c:2584:1: <LHS trace>
2582. }
2583. 
2584. void avformat_free_context(AVFormatContext *s)
      ^
2585. {
2586.     int i;

libavformat/utils.c:2584:1: Parameter `s->nb_programs`
    2582. }
    2583. 
    2584. void avformat_free_context(AVFormatContext *s)
          ^
    2585. {
    2586.     int i;

libavformat/utils.c:2609:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_open_input` 
    2607.         av_free(st);
    2608.     }
    2609.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2610.         av_dict_free(&s->programs[i]->metadata);
    2611.         av_freep(&s->programs[i]->stream_index);
