From 36aa7bc27f7122296b90d775bc6d209ebc784f73 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 21 Mar 2009 20:55:52 +0000 Subject: Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++". 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 769d2021fe..f9021ba6bf 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; -- cgit v1.2.3