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

ffmpeg.c:464:9: Call
462.         if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
463.             avio_close(s->pb);
464.         avformat_free_context(s);
             ^
465.         av_free(output_streams_for_file[i]);
466.         av_dict_free(&output_opts[i]);

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_free_context` 
  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);
