changeset 4779:52b8ffbf5d28 libavformat

Remove slash-skipping code because the function called right after that statement (get_word_sep()) already does that all by itself. See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.
author rbultje
date Sat, 21 Mar 2009 21:02:08 +0000
parents dd4e4ba1535f
children 75d9edccd39c
files rtsp.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Sat Mar 21 21:00:51 2009 +0000
+++ b/rtsp.c	Sat Mar 21 21:02:08 2009 +0000
@@ -584,14 +584,11 @@
 
         get_word_sep(transport_protocol, sizeof(transport_protocol),
                      "/", &p);
-        if (*p == '/')
-            p++;
         if (!strcasecmp (transport_protocol, "rtp")) {
             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);
             }