libavformat/segment.c:207: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `avformat_free_context`.

libavformat/segment.c:201:11: Call
199.     }
200. 
201.     ret = ff_write_chained(oc, pkt->stream_index, pkt, s);
               ^
202. 
203. fail:

libavformat/utils.c:3322:12: Call
  3320.                                      src->streams[pkt->stream_index]->time_base,
  3321.                                      dst->streams[dst_stream]->time_base);
  3322.     return av_write_frame(dst, &local_pkt);
                   ^
  3323. }
  3324. 

libavformat/mux.c:412:9: Assignment
    410. 
    411.     if (ret >= 0)
    412.         s->streams[pkt->stream_index]->nb_frames++;
                 ^
    413.     return ret;
    414. }

libavformat/segment.c:207:9: Call
205.         if (seg->list)
206.             avio_close(seg->pb);
207.         avformat_free_context(oc);
             ^
208.     }
209. 

libavformat/utils.c:2623:1: <LHS trace>
2621. }
2622. 
2623. void avformat_free_context(AVFormatContext *s)
      ^
2624. {
2625.     int i;

libavformat/utils.c:2623:1: Parameter `s->nb_programs`
  2621. }
  2622. 
  2623. void avformat_free_context(AVFormatContext *s)
        ^
  2624. {
  2625.     int i;

libavformat/utils.c:2649:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_free_context` 
  2647.         av_free(st);
  2648.     }
  2649.     for(i=s->nb_programs-1; i>=0; i--) {
                ^
  2650.         av_dict_free(&s->programs[i]->metadata);
  2651.         av_freep(&s->programs[i]->stream_index);
