Commit 86e51078 authored by lu_zero's avatar lu_zero

Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 2 x-pn-tng support

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11340 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9953fa05
......@@ -604,12 +604,17 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *p)
"/", &p);
if (*p == '/')
p++;
if (!strcasecmp (transport_protocol, "rtp")) {
get_word_sep(profile, sizeof(profile), "/;,", &p);
lower_transport[0] = '\0';
if (*p == '/') { /* rtp/avp/<protocol> */
p++;
get_word_sep(lower_transport, sizeof(lower_transport),
";,", &p);
}
} else if (!strcasecmp (transport_protocol, "x-pn-tng")) { /* x-pn-tng/<protocol> */
get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p);
profile[0] = '\0';
}
if (!strcasecmp(lower_transport, "TCP"))
th->protocol = RTSP_PROTOCOL_RTP_TCP;
......
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