1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 11340 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Luca Barbato 2007-12-28 11:23:25 +00:00
parent 16ed032214
commit e150211863

View File

@ -604,6 +604,7 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *p)
"/", &p); "/", &p);
if (*p == '/') if (*p == '/')
p++; p++;
if (!strcasecmp (transport_protocol, "rtp")) {
get_word_sep(profile, sizeof(profile), "/;,", &p); get_word_sep(profile, sizeof(profile), "/;,", &p);
lower_transport[0] = '\0'; lower_transport[0] = '\0';
if (*p == '/') { /* rtp/avp/<protocol> */ if (*p == '/') { /* rtp/avp/<protocol> */
@ -611,6 +612,10 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *p)
get_word_sep(lower_transport, sizeof(lower_transport), get_word_sep(lower_transport, sizeof(lower_transport),
";,", &p); ";,", &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")) if (!strcasecmp(lower_transport, "TCP"))
th->protocol = RTSP_PROTOCOL_RTP_TCP; th->protocol = RTSP_PROTOCOL_RTP_TCP;
else else