[FFmpeg-cvslog] r18128 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Mar 21 22:02:08 CET 2009


Author: rbultje
Date: Sat Mar 21 22:02:08 2009
New Revision: 18128

Log:
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.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Sat Mar 21 22:00:51 2009	(r18127)
+++ trunk/libavformat/rtsp.c	Sat Mar 21 22:02:08 2009	(r18128)
@@ -584,14 +584,11 @@ static void rtsp_parse_transport(RTSPMes
 
         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);
             }



More information about the ffmpeg-cvslog mailing list