libavformat/applehttp.c:146: error: Integer Overflow L1
  ([-oo, 0] - 1):unsigned32 by call to `av_close_input_file`.

libavformat/applehttp.c:145:13: Assignment
143.             url_fclose(var->pb);
144.         if (var->ctx) {
145.             var->ctx->pb = NULL;
                 ^
146.             av_close_input_file(var->ctx);
147.         }

libavformat/applehttp.c:146:13: Call
144.         if (var->ctx) {
145.             var->ctx->pb = NULL;
146.             av_close_input_file(var->ctx);
                 ^
147.         }
148.         av_free(var);

libavformat/utils.c:2593:1: Parameter `s->nb_chapters`
  2591. }
  2592. 
  2593. void av_close_input_file(AVFormatContext *s)
        ^
  2594. {
  2595.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2596:5: Call
  2594. {
  2595.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
  2596.     av_close_input_stream(s);
            ^
  2597.     if (pb)
  2598.         url_fclose(pb);

libavformat/utils.c:2542:1: <LHS trace>
2540. }
2541. 
2542. void av_close_input_stream(AVFormatContext *s)
      ^
2543. {
2544.     int i;

libavformat/utils.c:2542:1: Parameter `s->nb_chapters`
    2540. }
    2541. 
    2542. void av_close_input_stream(AVFormatContext *s)
          ^
    2543. {
    2544.     int i;

libavformat/utils.c:2580:11: Binary operation: ([-oo, 0] - 1):unsigned32 by call to `av_close_input_file` 
    2578.     av_freep(&s->programs);
    2579.     av_freep(&s->priv_data);
    2580.     while(s->nb_chapters--) {
                    ^
    2581. #if FF_API_OLD_METADATA
    2582.         av_free(s->chapters[s->nb_chapters]->title);
