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

libavformat/hlsenc.c:303:5: Call
301. 
302.     av_write_trailer(oc);
303.     avio_closep(&oc->pb);
         ^
304.     avformat_free_context(oc);
305.     av_free(hls->basename);

libavformat/aviobuf.c:810:15: Call
  808. int avio_closep(AVIOContext **s)
  809. {
  810.     int ret = avio_close(*s);
                     ^
  811.     *s = NULL;
  812.     return ret;

libavformat/aviobuf.c:794:1: Parameter `s->opaque->is_connected`
    792. }
    793. 
    794. int avio_close(AVIOContext *s)
         ^
    795. {
    796.     URLContext *h;

libavformat/hlsenc.c:304:5: Call
302.     av_write_trailer(oc);
303.     avio_closep(&oc->pb);
304.     avformat_free_context(oc);
         ^
305.     av_free(hls->basename);
306.     append_entry(hls, hls->duration);

libavformat/utils.c:2501:1: <LHS trace>
2499. }
2500. 
2501. void avformat_free_context(AVFormatContext *s)
      ^
2502. {
2503.     int i;

libavformat/utils.c:2501:1: Parameter `s->nb_programs`
  2499. }
  2500. 
  2501. void avformat_free_context(AVFormatContext *s)
        ^
  2502. {
  2503.     int i;

libavformat/utils.c:2528:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_free_context` 
  2526.         av_free(st);
  2527.     }
  2528.     for(i=s->nb_programs-1; i>=0; i--) {
                ^
  2529.         av_dict_free(&s->programs[i]->metadata);
  2530.         av_freep(&s->programs[i]->stream_index);
