diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:55:52 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:55:52 +0000 |
commit | 36aa7bc27f7122296b90d775bc6d209ebc784f73 (patch) | |
tree | e08efe128735a02f6dac792d72e8e220af88f902 | |
parent | 1ef36a7035e7eb3bd9a365bccf240fac29d19e62 (diff) | |
download | ffmpeg-36aa7bc27f7122296b90d775bc6d209ebc784f73.tar.gz |
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
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 769d2021fe..f9021ba6bf 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; |