Commit a7fc8349 authored by rbultje's avatar rbultje

Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".

See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18123 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 93aea025
...@@ -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