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 3 Reindent

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

View File

@ -607,12 +607,14 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *p)
if (!strcasecmp (transport_protocol, "rtp")) {
get_word_sep(profile, sizeof(profile), "/;,", &p);
lower_transport[0] = '\0';
if (*p == '/') { /* rtp/avp/<protocol> */
/* rtp/avp/<protocol> */
if (*p == '/') {
p++;
get_word_sep(lower_transport, sizeof(lower_transport),
";,", &p);
}
} else if (!strcasecmp (transport_protocol, "x-pn-tng")) { /* x-pn-tng/<protocol> */
} else if (!strcasecmp (transport_protocol, "x-pn-tng")) {
/* x-pn-tng/<protocol> */
get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p);
profile[0] = '\0';
}