mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user