[rtmpdump] r520 - trunk/librtmp/rtmp.c

hyc subversion at mplayerhq.hu
Tue Jun 29 03:09:22 CEST 2010


Author: hyc
Date: Tue Jun 29 03:09:21 2010
New Revision: 520

Log:
Skip repeated spaces between URL options

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Sun Jun 27 21:51:48 2010	(r519)
+++ trunk/librtmp/rtmp.c	Tue Jun 29 03:09:21 2010	(r520)
@@ -681,6 +681,9 @@ int RTMP_SetupURL(RTMP *r, char *url)
     if (ptr) {
       *ptr = '\0';
       arg.av_len = ptr - p2;
+      /* skip repeated spaces */
+      while(ptr[1] == ' ')
+      	*ptr++ = '\0';
     } else {
       arg.av_len = strlen(p2);
     }


More information about the rtmpdump mailing list