# HG changeset patch # User mstorsjo # Date 1274262389 0 # Node ID ea7a5879a250a4e5282d853cbd2fdfdf9da1147c # Parent 76a20c880f08b9f44f582914a927da265b76238b Fix a crash when opening WMS RTSP streams Fixes issue 1948 diff -r 76a20c880f08 -r ea7a5879a250 rtsp.c --- a/rtsp.c Wed May 19 08:13:13 2010 +0000 +++ b/rtsp.c Wed May 19 09:46:29 2010 +0000 @@ -1337,6 +1337,8 @@ RTSPStream *rtsp_st = rt->rtsp_streams[i]; RTPDemuxContext *rtpctx = rtsp_st->transport_priv; AVStream *st = NULL; + if (!rtpctx) + continue; if (rtsp_st->stream_index >= 0) st = s->streams[rtsp_st->stream_index]; rtpctx->last_rtcp_ntp_time = AV_NOPTS_VALUE;