mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-01 13:03:52 +08:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user