Commit 36aa7bc2 authored by Ronald S. Bultje's avatar Ronald S. Bultje

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
parent 1ef36a70
...@@ -1711,8 +1711,7 @@ static int redir_probe(AVProbeData *pd) ...@@ -1711,8 +1711,7 @@ static int redir_probe(AVProbeData *pd)
{ {
const char *p; const char *p;
p = pd->buf; p = pd->buf;
while (redir_isspace(*p)) skip_spaces(&p);
p++;
if (av_strstart(p, "http://", NULL) || if (av_strstart(p, "http://", NULL) ||
av_strstart(p, "rtsp://", NULL)) av_strstart(p, "rtsp://", NULL))
return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_MAX;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment