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

ffmpeg.c:459:9: Call
457.         if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
458.             avio_close(s->pb);
459.         avformat_free_context(s);
             ^
460.         av_free(output_streams_for_file[i]);
461.     }

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