comparison rtsp.c @ 4774:beca7e13cc3f libavformat

Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++". See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.
author rbultje
date Sat, 21 Mar 2009 20:55:52 +0000
parents 1c9751d3065c
children 57e9cd4ff7b5
comparison
equal deleted inserted replaced
4773:1c9751d3065c 4774:beca7e13cc3f
1709 /* dummy redirector format (used directly in av_open_input_file now) */ 1709 /* dummy redirector format (used directly in av_open_input_file now) */
1710 static int redir_probe(AVProbeData *pd) 1710 static int redir_probe(AVProbeData *pd)
1711 { 1711 {
1712 const char *p; 1712 const char *p;
1713 p = pd->buf; 1713 p = pd->buf;
1714 while (redir_isspace(*p)) 1714 skip_spaces(&p);
1715 p++;
1716 if (av_strstart(p, "http://", NULL) || 1715 if (av_strstart(p, "http://", NULL) ||
1717 av_strstart(p, "rtsp://", NULL)) 1716 av_strstart(p, "rtsp://", NULL))
1718 return AVPROBE_SCORE_MAX; 1717 return AVPROBE_SCORE_MAX;
1719 return 0; 1718 return 0;
1720 } 1719 }