Commit 747c1eac authored by mstorsjo's avatar mstorsjo

Fix a crash when opening WMS RTSP streams

Fixes issue 1948


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23181 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 33b0c956
......@@ -1337,6 +1337,8 @@ static int rtsp_read_play(AVFormatContext *s)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment