diff rtsp.c @ 2866:ccbca87ccd5e libavformat

Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 3 Reindent
author lu_zero
date Fri, 28 Dec 2007 11:25:25 +0000
parents 51aa1054528c
children e6e7ba123447
line wrap: on
line diff
--- a/rtsp.c	Fri Dec 28 11:23:25 2007 +0000
+++ b/rtsp.c	Fri Dec 28 11:25:25 2007 +0000
@@ -605,14 +605,16 @@
         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';
         }