Browse Source

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
tags/v0.6
Ronald S. Bultje 17 years ago
parent
commit
36aa7bc27f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/rtsp.c

+ 1
- 2
libavformat/rtsp.c 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;


Loading…
Cancel
Save