Fix a crash when opening WMS RTSP streams
Fixes issue 1948 Originally committed as revision 23181 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bffc36e084
commit
8d168a9207
@ -1337,6 +1337,8 @@ static int rtsp_read_play(AVFormatContext *s)
|
|||||||
RTSPStream *rtsp_st = rt->rtsp_streams[i];
|
RTSPStream *rtsp_st = rt->rtsp_streams[i];
|
||||||
RTPDemuxContext *rtpctx = rtsp_st->transport_priv;
|
RTPDemuxContext *rtpctx = rtsp_st->transport_priv;
|
||||||
AVStream *st = NULL;
|
AVStream *st = NULL;
|
||||||
|
if (!rtpctx)
|
||||||
|
continue;
|
||||||
if (rtsp_st->stream_index >= 0)
|
if (rtsp_st->stream_index >= 0)
|
||||||
st = s->streams[rtsp_st->stream_index];
|
st = s->streams[rtsp_st->stream_index];
|
||||||
rtpctx->last_rtcp_ntp_time = AV_NOPTS_VALUE;
|
rtpctx->last_rtcp_ntp_time = AV_NOPTS_VALUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user