Mercurial > libavformat.hg
diff rtsp.c @ 4163:8d6512cbd657 libavformat
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.
author | rbultje |
---|---|
date | Wed, 07 Jan 2009 14:38:44 +0000 |
parents | e2349f1f7c26 |
children | 8b294ed0bd65 |
line wrap: on
line diff
--- a/rtsp.c Wed Jan 07 01:19:48 2009 +0000 +++ b/rtsp.c Wed Jan 07 14:38:44 2009 +0000 @@ -549,6 +549,9 @@ 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)