projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef36a7
)
Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
author
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 21 Mar 2009 20:55:52 +0000
(20:55 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 21 Mar 2009 20:55:52 +0000
(20:55 +0000)
See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.
Originally committed as revision 18123 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
769d202
..
f9021ba
100644
(file)
--- 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;