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

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

libavformat/rtsp.c:585:9: Call
583.     av_free(rt->rtsp_streams);
584.     if (rt->asf_ctx) {
585.         avformat_close_input(&rt->asf_ctx);
             ^
586.     }
587.     av_free(rt->p);

libavformat/utils.c:2594:1: Parameter `(*ps)->nb_programs`
  2592. #endif
  2593. 
  2594. void avformat_close_input(AVFormatContext **ps)
        ^
  2595. {
  2596.     AVFormatContext *s = *ps;

libavformat/utils.c:2602:5: Call
  2600.     if (s->iformat->read_close)
  2601.         s->iformat->read_close(s);
  2602.     avformat_free_context(s);
            ^
  2603.     *ps = NULL;
  2604.     if (pb)

libavformat/utils.c:2545:1: <LHS trace>
2543. }
2544. 
2545. void avformat_free_context(AVFormatContext *s)
      ^
2546. {
2547.     int i;

libavformat/utils.c:2545:1: Parameter `s->nb_programs`
    2543. }
    2544. 
    2545. void avformat_free_context(AVFormatContext *s)
          ^
    2546. {
    2547.     int i;

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