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

libavformat/hlsenc.c:327:5: Call
325. 
326.     av_write_trailer(oc);
327.     avio_closep(&oc->pb);
         ^
328.     avformat_free_context(oc);
329.     av_free(hls->basename);

libavformat/aviobuf.c:832:15: Call
  830. int avio_closep(AVIOContext **s)
  831. {
  832.     int ret = avio_close(*s);
                     ^
  833.     *s = NULL;
  834.     return ret;

libavformat/aviobuf.c:816:1: Parameter `s->opaque->is_connected`
    814. }
    815. 
    816. int avio_close(AVIOContext *s)
         ^
    817. {
    818.     URLContext *h;

libavformat/hlsenc.c:328:5: Call
326.     av_write_trailer(oc);
327.     avio_closep(&oc->pb);
328.     avformat_free_context(oc);
         ^
329.     av_free(hls->basename);
330.     append_entry(hls, hls->duration);

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