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

libavformat/segment.c:213:20: Unknown value from: non-const function
211. 
212.     if (seg->list && seg->list_type != LIST_HLS)
213.         if ((ret = s->io_open(s, &seg->pb, seg->list, AVIO_FLAG_WRITE, NULL)) < 0)
                        ^
214.             goto fail;
215. 

libavformat/segment.c:279:9: Call
277. fail:
278.     if (ret < 0)
279.         seg_free_context(seg);
             ^
280. 
281.     return ret;

libavformat/segment.c:193:1: Parameter `seg->avf->nb_programs`
  191. }
  192. 
  193. static void seg_free_context(SegmentContext *seg)
       ^
  194. {
  195.     ff_format_io_close(seg->avf, &seg->pb);

libavformat/segment.c:196:5: Call
  194. {
  195.     ff_format_io_close(seg->avf, &seg->pb);
  196.     avformat_free_context(seg->avf);
           ^
  197.     seg->avf = NULL;
  198. }

libavformat/utils.c:2477:1: <LHS trace>
2475. }
2476. 
2477. void avformat_free_context(AVFormatContext *s)
      ^
2478. {
2479.     int i;

libavformat/utils.c:2477:1: Parameter `s->nb_programs`
    2475. }
    2476. 
    2477. void avformat_free_context(AVFormatContext *s)
          ^
    2478. {
    2479.     int i;

libavformat/utils.c:2491:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `seg_free_context` 
    2489.         free_stream(&s->streams[i]);
    2490. 
    2491.     for (i = s->nb_programs - 1; i >= 0; i--) {
                   ^
    2492.         av_dict_free(&s->programs[i]->metadata);
    2493.         av_freep(&s->programs[i]->stream_index);
