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

libavformat/hlsenc.c:195:20: Call
193.                "expect issues decoding it.\n");
194. 
195.     hls->oformat = av_guess_format("mpegts", NULL, NULL);
                        ^
196. 
197.     if (!hls->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/hlsenc.c:232:13: Call
230.         av_free(hls->basename);
231.         if (hls->avf)
232.             avformat_free_context(hls->avf);
                 ^
233.     }
234.     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);
