[FFmpeg-cvslog] r18123 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Mar 21 21:55:52 CET 2009


Author: rbultje
Date: Sat Mar 21 21:55:52 2009
New Revision: 18123

Log:
Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Sat Mar 21 21:54:47 2009	(r18122)
+++ trunk/libavformat/rtsp.c	Sat Mar 21 21:55:52 2009	(r18123)
@@ -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;



More information about the ffmpeg-cvslog mailing list