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

libavformat/segment.c:314:11: Call
312.     }
313. 
314.     ret = ff_write_chained(oc, pkt->stream_index, pkt, s);
               ^
315. 
316. fail:

libavformat/mux.c:654:12: Call
  652.                                      src->streams[pkt->stream_index]->time_base,
  653.                                      dst->streams[dst_stream]->time_base);
  654.     return av_write_frame(dst, &local_pkt);
                  ^
  655. }

libavformat/mux.c:450:9: Assignment
    448. 
    449.     if (ret >= 0)
    450.         s->streams[pkt->stream_index]->nb_frames++;
                 ^
    451.     return ret;
    452. }

libavformat/segment.c:320:9: Call
318.         if (seg->list)
319.             avio_close(seg->pb);
320.         avformat_free_context(oc);
             ^
321.     }
322. 

libavformat/utils.c:2595:1: <LHS trace>
2593. }
2594. 
2595. void avformat_free_context(AVFormatContext *s)
      ^
2596. {
2597.     int i;

libavformat/utils.c:2595:1: Parameter `s->nb_programs`
  2593. }
  2594. 
  2595. void avformat_free_context(AVFormatContext *s)
        ^
  2596. {
  2597.     int i;

libavformat/utils.c:2622:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_free_context` 
  2620.         av_free(st);
  2621.     }
  2622.     for (i = s->nb_programs - 1; i >= 0; i--) {
                 ^
  2623.         av_dict_free(&s->programs[i]->metadata);
  2624.         av_freep(&s->programs[i]->stream_index);
