libavformat/rtsp.c:599: error: Integer Overflow L1
  ([-oo, 0] - 1):unsigned32 by call to `av_close_input_stream`.

libavformat/rtsp.c:586:21: Call
584.             if (rtsp_st->transport_priv) {
585.                 if (rt->transport == RTSP_TRANSPORT_RDT)
586.                     ff_rdt_parse_close(rtsp_st->transport_priv);
                         ^
587.                 else
588.                     rtp_parse_close(rtsp_st->transport_priv);

libavformat/rdt.c:82:9: Assignment
  80. 
  81.     for (i = 1; i < s->n_streams; i++)
  82.         s->streams[i]->priv_data = NULL;
              ^
  83. 
  84.     av_free(s);

libavformat/rtsp.c:599:9: Call
597.     av_free(rt->rtsp_streams);
598.     if (rt->asf_ctx) {
599.         av_close_input_stream (rt->asf_ctx);
             ^
600.         rt->asf_ctx = NULL;
601.     }

libavformat/utils.c:2348:1: <LHS trace>
2346. }
2347. 
2348. void av_close_input_stream(AVFormatContext *s)
      ^
2349. {
2350.     int i;

libavformat/utils.c:2348:1: Parameter `s->nb_chapters`
  2346. }
  2347. 
  2348. void av_close_input_stream(AVFormatContext *s)
        ^
  2349. {
  2350.     int i;

libavformat/utils.c:2384:11: Binary operation: ([-oo, 0] - 1):unsigned32 by call to `av_close_input_stream` 
  2382.     flush_packet_queue(s);
  2383.     av_freep(&s->priv_data);
  2384.     while(s->nb_chapters--) {
                  ^
  2385. #if LIBAVFORMAT_VERSION_INT < (53<<16)
  2386.         av_free(s->chapters[s->nb_chapters]->title);
