libavformat/hls.c:138: error: Integer Overflow L1
  ([-oo, 0] - 1):unsigned32 by call to `avformat_close_input`.

libavformat/hls.c:137:13: Assignment
135.             ff_format_io_close(c->ctx, &var->input);
136.         if (var->ctx) {
137.             var->ctx->pb = NULL;
                 ^
138.             avformat_close_input(&var->ctx);
139.         }

libavformat/hls.c:138:13: Call
136.         if (var->ctx) {
137.             var->ctx->pb = NULL;
138.             avformat_close_input(&var->ctx);
                 ^
139.         }
140.         av_free(var);

libavformat/utils.c:2733:1: Parameter `(*ps)->nb_chapters`
  2731. }
  2732. 
  2733. void avformat_close_input(AVFormatContext **ps)
        ^
  2734. {
  2735.     AVFormatContext *s = *ps;

libavformat/utils.c:2753:5: Call
  2751.             s->iformat->read_close(s);
  2752. 
  2753.     avformat_free_context(s);
            ^
  2754. 
  2755.     *ps = NULL;

libavformat/utils.c:2701:1: <LHS trace>
2699. }
2700. 
2701. void avformat_free_context(AVFormatContext *s)
      ^
2702. {
2703.     int i;

libavformat/utils.c:2701:1: Parameter `s->nb_chapters`
    2699. }
    2700. 
    2701. void avformat_free_context(AVFormatContext *s)
          ^
    2702. {
    2703.     int i;

libavformat/utils.c:2722:12: Binary operation: ([-oo, 0] - 1):unsigned32 by call to `avformat_close_input` 
    2720.     av_freep(&s->programs);
    2721.     av_freep(&s->priv_data);
    2722.     while (s->nb_chapters--) {
                     ^
    2723.         av_dict_free(&s->chapters[s->nb_chapters]->metadata);
    2724.         av_free(s->chapters[s->nb_chapters]);
