Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 3 Reindent
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Dec 2007 11:25:25 +0000 (11:25 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Dec 2007 11:25:25 +0000 (11:25 +0000)
Originally committed as revision 11341 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 842503b..ff66f4b 100644 (file)
@@ -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';
         }