From 456001486ee8fe1cd906e497b603f98159191175 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 6 Apr 2012 23:07:12 +0300 Subject: rtsp: Don't expose the MS-RTSP RTX data stream to the caller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids exposing a dummy AVStream which won't get any data and which will make avformat_find_stream_info wait for info about this stream. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_asf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rtpdec_asf.c') diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c index c1690ef8f1..bbb7609175 100644 --- a/libavformat/rtpdec_asf.c +++ b/libavformat/rtpdec_asf.c @@ -130,6 +130,8 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p) static int asfrtp_parse_sdp_line(AVFormatContext *s, int stream_index, PayloadContext *asf, const char *line) { + if (stream_index < 0) + return 0; if (av_strstart(line, "stream:", &line)) { RTSPState *rt = s->priv_data; -- cgit v1.2.3