changeset 4774:beca7e13cc3f libavformat

Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++". See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.
author rbultje
date Sat, 21 Mar 2009 20:55:52 +0000
parents 1c9751d3065c
children 57e9cd4ff7b5
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Sat Mar 21 20:54:47 2009 +0000
+++ b/rtsp.c	Sat Mar 21 20:55:52 2009 +0000
@@ -1711,8 +1711,7 @@
 {
     const char *p;
     p = pd->buf;
-    while (redir_isspace(*p))
-        p++;
+    skip_spaces(&p);
     if (av_strstart(p, "http://", NULL) ||
         av_strstart(p, "rtsp://", NULL))
         return AVPROBE_SCORE_MAX;