aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2014-09-13 20:52:03 -0300
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2014-09-13 21:01:01 -0300
commit2638af2fc5ec4b85d42ac381ed3f2fe7237e94e1 (patch)
treea1d8a33fdb1b0e444540ad521c01f145b982e800
parent4c8be331bcd57559177559d9a704368a31126aa9 (diff)
downloadffmpeg-2638af2fc5ec4b85d42ac381ed3f2fe7237e94e1.tar.gz
ffserver: drop custom skip_spaces() impl
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
-rw-r--r--ffserver.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ffserver.c b/ffserver.c
index 3d42f62dec..24e400504c 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)