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
This commit is contained in:
Ronald S. Bultje 2009-03-21 20:55:52 +00:00
parent 1ef36a7035
commit 36aa7bc27f
1 changed files with 1 additions and 2 deletions

View 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;