Mercurial > libavformat.hg
diff rtsp.c @ 6020:ea7a5879a250 libavformat
Fix a crash when opening WMS RTSP streams
Fixes issue 1948
author | mstorsjo |
---|---|
date | Wed, 19 May 2010 09:46:29 +0000 |
parents | f74198942337 |
children | e688babd14df |
line wrap: on
line diff
--- 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;