diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-19 09:46:29 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-19 09:46:29 +0000 |
commit | 8d168a9207f231c22a04a5a2b252d0ab89477b02 (patch) | |
tree | 0a779b0ff5ea839e139246f6133f806697928a6c | |
parent | bffc36e0842a2d7a949df8ec4cbf383050470337 (diff) | |
download | ffmpeg-8d168a9207f231c22a04a5a2b252d0ab89477b02.tar.gz |
Fix a crash when opening WMS RTSP streams
Fixes issue 1948
Originally committed as revision 23181 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index fec91f11b8..6dbd796d31 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; |