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

libavformat/rtsp.c:612:17: Unknown value from: non-const function
610.         if (rtsp_st) {
611.             if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
612.                 rtsp_st->dynamic_handler->free(
                     ^
613.                     rtsp_st->dynamic_protocol_context);
614.             av_free(rtsp_st);

libavformat/rtsp.c:619:9: Call
617.     av_free(rt->rtsp_streams);
618.     if (rt->asf_ctx) {
619.         avformat_close_input(&rt->asf_ctx);
             ^
620.     }
621.     if (rt->ts && CONFIG_RTPDEC)

libavformat/utils.c:2648:1: Parameter `(*ps)->nb_programs`
  2646. }
  2647. 
  2648. void avformat_close_input(AVFormatContext **ps)
        ^
  2649. {
  2650.     AVFormatContext *s = *ps;

libavformat/utils.c:2664:5: Call
  2662.     }
  2663. 
  2664.     avformat_free_context(s);
            ^
  2665. 
  2666.     *ps = NULL;

libavformat/utils.c:2605:1: <LHS trace>
2603. }
2604. 
2605. void avformat_free_context(AVFormatContext *s)
      ^
2606. {
2607.     int i;

libavformat/utils.c:2605:1: Parameter `s->nb_programs`
    2603. }
    2604. 
    2605. void avformat_free_context(AVFormatContext *s)
          ^
    2606. {
    2607.     int i;

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