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

libavformat/rtsp.c:576:17: Unknown value from: non-const function
574.         if (rtsp_st) {
575.             if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
576.                 rtsp_st->dynamic_handler->free(
                     ^
577.                     rtsp_st->dynamic_protocol_context);
578.             av_free(rtsp_st);

libavformat/rtsp.c:583:9: Call
581.     av_free(rt->rtsp_streams);
582.     if (rt->asf_ctx) {
583.         av_close_input_file(rt->asf_ctx);
             ^
584.         rt->asf_ctx = NULL;
585.     }

libavformat/utils.c:2687:1: Parameter `s->nb_programs`
  2685. }
  2686. 
  2687. void av_close_input_file(AVFormatContext *s)
        ^
  2688. {
  2689.     AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?

libavformat/utils.c:2694:5: Call
  2692.     if (s->iformat->read_close)
  2693.         s->iformat->read_close(s);
  2694.     avformat_free_context(s);
            ^
  2695.     if (pb)
  2696.         avio_close(pb);

libavformat/utils.c:2645:1: <LHS trace>
2643. #endif
2644. 
2645. void avformat_free_context(AVFormatContext *s)
      ^
2646. {
2647.     int i;

libavformat/utils.c:2645:1: Parameter `s->nb_programs`
    2643. #endif
    2644. 
    2645. void avformat_free_context(AVFormatContext *s)
          ^
    2646. {
    2647.     int i;

libavformat/utils.c:2670:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `av_close_input_file` 
    2668.         av_free(st);
    2669.     }
    2670.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2671.         av_dict_free(&s->programs[i]->metadata);
    2672.         av_freep(&s->programs[i]->stream_index);
