[FFmpeg-cvslog] ffserver: drop custom skip_spaces() impl

Reynaldo H. Verdejo Pinochet git at videolan.org
Sun Sep 14 02:01:58 CEST 2014


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Sat Sep 13 20:52:03 2014 -0300| [2638af2fc5ec4b85d42ac381ed3f2fe7237e94e1] | committer: Reynaldo H. Verdejo Pinochet

ffserver: drop custom skip_spaces() impl

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2638af2fc5ec4b85d42ac381ed3f2fe7237e94e1
---

 ffserver.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 3d42f62..24e4005 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -1258,24 +1258,13 @@ static int modify_current_stream(HTTPContext *c, char *rates)
     return action_required;
 }
 
-/* XXX: factorize in utils.c ? */
-/* XXX: take care with different space meaning */
-static void skip_spaces(const char **pp)
-{
-    const char *p;
-    p = *pp;
-    while (*p == ' ' || *p == '\t')
-        p++;
-    *pp = p;
-}
-
 static void get_word(char *buf, int buf_size, const char **pp)
 {
     const char *p;
     char *q;
 
     p = *pp;
-    skip_spaces(&p);
+    p += strspn(p, SPACE_CHARS);
     q = buf;
     while (!av_isspace(*p) && *p != '\0') {
         if ((q - buf) < buf_size - 1)



More information about the ffmpeg-cvslog mailing list