comparison 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
comparison
equal deleted inserted replaced
4162:d9dede8fe890 4163:8d6512cbd657
547 s->duration= (end==AV_NOPTS_VALUE)?AV_NOPTS_VALUE:end-start; // AV_NOPTS_VALUE means live broadcast (and can't seek) 547 s->duration= (end==AV_NOPTS_VALUE)?AV_NOPTS_VALUE:end-start; // AV_NOPTS_VALUE means live broadcast (and can't seek)
548 } else if (av_strstart(p, "IsRealDataType:integer;",&p)) { 548 } else if (av_strstart(p, "IsRealDataType:integer;",&p)) {
549 if (atoi(p) == 1) 549 if (atoi(p) == 1)
550 rt->transport = RTSP_TRANSPORT_RDT; 550 rt->transport = RTSP_TRANSPORT_RDT;
551 } else if (s->nb_streams > 0) { 551 } else if (s->nb_streams > 0) {
552 if (rt->server_type == RTSP_SERVER_REAL)
553 ff_real_parse_sdp_a_line(s, s->nb_streams - 1, p);
554
552 rtsp_st = s->streams[s->nb_streams - 1]->priv_data; 555 rtsp_st = s->streams[s->nb_streams - 1]->priv_data;
553 if (rtsp_st->dynamic_handler && 556 if (rtsp_st->dynamic_handler &&
554 rtsp_st->dynamic_handler->parse_sdp_a_line) 557 rtsp_st->dynamic_handler->parse_sdp_a_line)
555 rtsp_st->dynamic_handler->parse_sdp_a_line(s, s->nb_streams - 1, 558 rtsp_st->dynamic_handler->parse_sdp_a_line(s, s->nb_streams - 1,
556 rtsp_st->dynamic_protocol_context, buf); 559 rtsp_st->dynamic_protocol_context, buf);