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

libavformat/segment.c:169:20: Call
167.                "expect issues decoding it.\n");
168. 
169.     seg->oformat = av_guess_format(seg->format, s->filename, NULL);
                        ^
170. 
171.     if (!seg->oformat) {

libavformat/utils.c:162:16: Unknown value from: av_guess_format
  160.         av_filename_number_test(filename) &&
  161.         ff_guess_image2_codec(filename) != AV_CODEC_ID_NONE) {
  162.         return av_guess_format("image2", NULL, NULL);
                      ^
  163.     }
  164. #endif

libavformat/segment.c:223:13: Call
221.             avio_close(seg->pb);
222.         if (seg->avf)
223.             avformat_free_context(seg->avf);
                 ^
224.     }
225.     return ret;

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