Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 21 Mar 2009 20:55:52 +0000 (20:55 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 21 Mar 2009 20:55:52 +0000 (20:55 +0000)
See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.

Originally committed as revision 18123 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 769d202..f9021ba 100644 (file)
@@ -1711,8 +1711,7 @@ static int redir_probe(AVProbeData *pd)
 {
     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;