# HG changeset patch # User rbultje # Date 1237668952 0 # Node ID beca7e13cc3f1a47f5a4554d7b1201c5dfdcc117 # Parent 1c9751d3065cc0e95c50a35fc8af2d7bff91c01b Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++". See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist. diff -r 1c9751d3065c -r beca7e13cc3f rtsp.c --- a/rtsp.c Sat Mar 21 20:54:47 2009 +0000 +++ b/rtsp.c Sat Mar 21 20:55:52 2009 +0000 @@ -1711,8 +1711,7 @@ { 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;