changeset 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 76a20c880f08
children d01a092c7423
files rtsp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;