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

libavformat/segment.c:224:20: Call
222.                "expect issues decoding it.\n");
223. 
224.     seg->oformat = av_guess_format(seg->format, s->filename, NULL);
                        ^
225. 
226.     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:280:9: Call
278. fail:
279.     if (ret < 0)
280.         seg_free_context(seg);
             ^
281. 
282.     return ret;

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

libavformat/segment.c:194:5: Call
  192. {
  193.     avio_closep(&seg->pb);
  194.     avformat_free_context(seg->avf);
           ^
  195.     seg->avf = NULL;
  196. }

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