diff options
author | Martin Storsjö <martin@martin.st> | 2012-04-06 23:07:12 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-04-08 12:04:22 +0300 |
commit | 456001486ee8fe1cd906e497b603f98159191175 (patch) | |
tree | 674e9168fc98d378a6bc4c2278f6a61543a73906 /libavformat/rtpdec_mpeg4.c | |
parent | d293e3464db647e72fffad50a678eca89546b65f (diff) | |
download | ffmpeg-456001486ee8fe1cd906e497b603f98159191175.tar.gz |
rtsp: Don't expose the MS-RTSP RTX data stream to the caller
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ö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 99792c9628..5ba88173a4 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -223,6 +223,9 @@ static int parse_sdp_line(AVFormatContext *s, int st_index, { const char *p; + if (st_index < 0) + return 0; + if (av_strstart(line, "fmtp:", &p)) return ff_parse_fmtp(s->streams[st_index], data, p, parse_fmtp); |