mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 22:10:34 +00:00
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:
parent
1ef36a7035
commit
36aa7bc27f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user