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

libavformat/segment.c:220:20: Call
218.                "expect issues decoding it.\n");
219. 
220.     seg->oformat = av_guess_format(seg->format, s->filename, NULL);
                        ^
221. 
222.     if (!seg->oformat) {

libavformat/format.c:115:16: Unknown value from: av_guess_format
  113.         av_filename_number_test(filename) &&
  114.         ff_guess_image2_codec(filename) != AV_CODEC_ID_NONE) {
  115.         return av_guess_format("image2", NULL, NULL);
                      ^
  116.     }
  117. #endif

libavformat/segment.c:276:9: Call
274. fail:
275.     if (ret < 0)
276.         seg_free_context(seg);
             ^
277. 
278.     return ret;

libavformat/segment.c:187:1: Parameter `seg->avf->nb_programs`
  185. }
  186. 
  187. static void seg_free_context(SegmentContext *seg)
       ^
  188. {
  189.     avio_closep(&seg->pb);

libavformat/segment.c:190:5: Call
  188. {
  189.     avio_closep(&seg->pb);
  190.     avformat_free_context(seg->avf);
           ^
  191.     seg->avf = NULL;
  192. }

libavformat/utils.c:2432:1: <LHS trace>
2430. }
2431. 
2432. void avformat_free_context(AVFormatContext *s)
      ^
2433. {
2434.     int i, j;

libavformat/utils.c:2432:1: Parameter `s->nb_programs`
    2430. }
    2431. 
    2432. void avformat_free_context(AVFormatContext *s)
          ^
    2433. {
    2434.     int i, j;

libavformat/utils.c:2468:10: Binary operation: ([0, +oo] - 1):unsigned32 by call to `seg_free_context` 
    2466.         av_free(st);
    2467.     }
    2468.     for (i = s->nb_programs - 1; i >= 0; i--) {
                   ^
    2469.         av_dict_free(&s->programs[i]->metadata);
    2470.         av_freep(&s->programs[i]->stream_index);
