aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-12-28 11:25:25 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-12-28 11:25:25 +0000
commit7ecc634e8a1af0e44a0593aa2a5da6b034cecd8d (patch)
tree16987f9da23b7e8b9f54f13c664d8247763d72eb /libavformat/rtsp.c
parente150211863c1cd48e1ed4cee04f32efe81f7bb78 (diff)
downloadffmpeg-7ecc634e8a1af0e44a0593aa2a5da6b034cecd8d.tar.gz
Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 3 Reindent
Originally committed as revision 11341 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 842503b620..ff66f4bb44 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -605,14 +605,16 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *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(profile, sizeof(profile), "/;,", &p);
+ lower_transport[0] = '\0';
+ /* 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> */
get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p);
profile[0] = '\0';
}