Commit 0e55ab69 authored by rbultje's avatar rbultje

Use RTPDynamicProtocol parse_sdp_a_line() handlers in case of unknown SDP

lines. This allows "private" SDP tags to be forwarded to the specific handler,
allowing protocol-specific handling of SDP data. See mailinglist discussion
in the "Realmedia patch" thread.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14987 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7970c8bc
...@@ -527,6 +527,12 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, ...@@ -527,6 +527,12 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
rtsp_parse_range_npt(p, &start, &end); rtsp_parse_range_npt(p, &start, &end);
s->start_time= start; s->start_time= start;
s->duration= (end==AV_NOPTS_VALUE)?AV_NOPTS_VALUE:end-start; // AV_NOPTS_VALUE means live broadcast (and can't seek) s->duration= (end==AV_NOPTS_VALUE)?AV_NOPTS_VALUE:end-start; // AV_NOPTS_VALUE means live broadcast (and can't seek)
} else if (s->nb_streams > 0) {
rtsp_st = s->streams[s->nb_streams - 1]->priv_data;
if (rtsp_st->dynamic_handler &&
rtsp_st->dynamic_handler->parse_sdp_a_line)
rtsp_st->dynamic_handler->parse_sdp_a_line(s->streams[s->nb_streams - 1],
rtsp_st->dynamic_protocol_context, buf);
} }
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment