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

libavformat/rtsp.c:593:17: Unknown value from: non-const function
591.         if (rtsp_st) {
592.             if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
593.                 rtsp_st->dynamic_handler->free(
                     ^
594.                     rtsp_st->dynamic_protocol_context);
595.             av_free(rtsp_st);

libavformat/rtsp.c:600:9: Call
598.     av_free(rt->rtsp_streams);
599.     if (rt->asf_ctx) {
600.         avformat_close_input(&rt->asf_ctx);
             ^
601.     }
602.     if (rt->ts && CONFIG_RTPDEC)

libavformat/utils.c:2702:1: Parameter `(*ps)->nb_programs`
  2700. #endif
  2701. 
  2702. void avformat_close_input(AVFormatContext **ps)
        ^
  2703. {
  2704.     AVFormatContext *s = *ps;

libavformat/utils.c:2718:5: Call
  2716.     }
  2717. 
  2718.     avformat_free_context(s);
            ^
  2719. 
  2720.     *ps = NULL;

libavformat/utils.c:2652:1: <LHS trace>
2650. }
2651. 
2652. void avformat_free_context(AVFormatContext *s)
      ^
2653. {
2654.     int i;

libavformat/utils.c:2652:1: Parameter `s->nb_programs`
    2650. }
    2651. 
    2652. void avformat_free_context(AVFormatContext *s)
          ^
    2653. {
    2654.     int i;

libavformat/utils.c:2678:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `avformat_close_input` 
    2676.         av_free(st);
    2677.     }
    2678.     for(i=s->nb_programs-1; i>=0; i--) {
                  ^
    2679.         av_dict_free(&s->programs[i]->metadata);
    2680.         av_freep(&s->programs[i]->stream_index);
