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

libavformat/hlsenc.c:229:20: Call
227.                "expect issues decoding it.\n");
228. 
229.     hls->oformat = av_guess_format("mpegts", NULL, NULL);
                        ^
230. 
231.     if (!hls->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/hlsenc.c:266:13: Call
264.         av_free(hls->basename);
265.         if (hls->avf)
266.             avformat_free_context(hls->avf);
                 ^
267.     }
268.     return ret;

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