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

libavformat/hlsenc.c:285:5: Call
283. 
284.     av_write_trailer(oc);
285.     avio_closep(&oc->pb);
         ^
286.     avformat_free_context(oc);
287.     av_free(hls->basename);

libavformat/aviobuf.c:771:15: Call
  769. int avio_closep(AVIOContext **s)
  770. {
  771.     int ret = avio_close(*s);
                     ^
  772.     *s = NULL;
  773.     return ret;

libavformat/aviobuf.c:755:1: Parameter `s->opaque->is_connected`
    753. }
    754. 
    755. int avio_close(AVIOContext *s)
         ^
    756. {
    757.     URLContext *h;

libavformat/hlsenc.c:286:5: Call
284.     av_write_trailer(oc);
285.     avio_closep(&oc->pb);
286.     avformat_free_context(oc);
         ^
287.     av_free(hls->basename);
288.     hls_window(s, 1);

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