diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-01-07 14:38:44 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-01-07 14:38:44 +0000 |
commit | 3ca45429fea4edb64daf3e6dd11e40ee23bc484b (patch) | |
tree | be5a1f9db55bcae1c199fe9d9987fcf19d06e94a /libavformat/rtsp.c | |
parent | b06688ffedf0491deb158f5885b55203103e0c99 (diff) | |
download | ffmpeg-3ca45429fea4edb64daf3e6dd11e40ee23bc484b.tar.gz |
Parse the ASMRuleBook SDP line to dynamically create one new AVStream for
each "rule" described in the ASMRuleBook. Each rule represents a stream
of identical content compared to other streams in the same rulebook, but
with a possibly different codec/bitrate/etc. See "[PATCH] rdt.c: ASM
rulebook parsing and AVStream creation" thread on mailinglist.
Originally committed as revision 16466 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 6375a3e60f..4f295286f2 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -549,6 +549,9 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, if (atoi(p) == 1) rt->transport = RTSP_TRANSPORT_RDT; } else if (s->nb_streams > 0) { + if (rt->server_type == RTSP_SERVER_REAL) + ff_real_parse_sdp_a_line(s, s->nb_streams - 1, p); + rtsp_st = s->streams[s->nb_streams - 1]->priv_data; if (rtsp_st->dynamic_handler && rtsp_st->dynamic_handler->parse_sdp_a_line) |