|
|
@ -1113,7 +1113,7 @@ static int extract_rates(char *rates, int ratelen, const char *request) |
|
|
|
if (av_strncasecmp(p, "Pragma:", 7) == 0) { |
|
|
|
if (av_strncasecmp(p, "Pragma:", 7) == 0) { |
|
|
|
const char *q = p + 7; |
|
|
|
const char *q = p + 7; |
|
|
|
|
|
|
|
|
|
|
|
while (*q && *q != '\n' && isspace(*q)) |
|
|
|
while (*q && *q != '\n' && av_isspace(*q)) |
|
|
|
q++; |
|
|
|
q++; |
|
|
|
|
|
|
|
|
|
|
|
if (av_strncasecmp(q, "stream-switch-entry=", 20) == 0) { |
|
|
|
if (av_strncasecmp(q, "stream-switch-entry=", 20) == 0) { |
|
|
@ -1135,7 +1135,7 @@ static int extract_rates(char *rates, int ratelen, const char *request) |
|
|
|
if (stream_no < ratelen && stream_no >= 0) |
|
|
|
if (stream_no < ratelen && stream_no >= 0) |
|
|
|
rates[stream_no] = rate_no; |
|
|
|
rates[stream_no] = rate_no; |
|
|
|
|
|
|
|
|
|
|
|
while (*q && *q != '\n' && !isspace(*q)) |
|
|
|
while (*q && *q != '\n' && !av_isspace(*q)) |
|
|
|
q++; |
|
|
|
q++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1246,7 +1246,7 @@ static void get_word(char *buf, int buf_size, const char **pp) |
|
|
|
p = *pp; |
|
|
|
p = *pp; |
|
|
|
skip_spaces(&p); |
|
|
|
skip_spaces(&p); |
|
|
|
q = buf; |
|
|
|
q = buf; |
|
|
|
while (!isspace(*p) && *p != '\0') { |
|
|
|
while (!av_isspace(*p) && *p != '\0') { |
|
|
|
if ((q - buf) < buf_size - 1) |
|
|
|
if ((q - buf) < buf_size - 1) |
|
|
|
*q++ = *p; |
|
|
|
*q++ = *p; |
|
|
|
p++; |
|
|
|
p++; |
|
|
@ -1263,7 +1263,7 @@ static void get_arg(char *buf, int buf_size, const char **pp) |
|
|
|
int quote; |
|
|
|
int quote; |
|
|
|
|
|
|
|
|
|
|
|
p = *pp; |
|
|
|
p = *pp; |
|
|
|
while (isspace(*p)) p++; |
|
|
|
while (av_isspace(*p)) p++; |
|
|
|
q = buf; |
|
|
|
q = buf; |
|
|
|
quote = 0; |
|
|
|
quote = 0; |
|
|
|
if (*p == '\"' || *p == '\'') |
|
|
|
if (*p == '\"' || *p == '\'') |
|
|
@ -1273,7 +1273,7 @@ static void get_arg(char *buf, int buf_size, const char **pp) |
|
|
|
if (*p == quote) |
|
|
|
if (*p == quote) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (isspace(*p)) |
|
|
|
if (av_isspace(*p)) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if (*p == '\0') |
|
|
|
if (*p == '\0') |
|
|
@ -1377,7 +1377,7 @@ static IPAddressACL* parse_dynamic_acl(FFStream *stream, HTTPContext *c) |
|
|
|
break; |
|
|
|
break; |
|
|
|
line_num++; |
|
|
|
line_num++; |
|
|
|
p = line; |
|
|
|
p = line; |
|
|
|
while (isspace(*p)) |
|
|
|
while (av_isspace(*p)) |
|
|
|
p++; |
|
|
|
p++; |
|
|
|
if (*p == '\0' || *p == '#') |
|
|
|
if (*p == '\0' || *p == '#') |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -1528,7 +1528,7 @@ static int http_parse_request(HTTPContext *c) |
|
|
|
for (p = c->buffer; *p && *p != '\r' && *p != '\n'; ) { |
|
|
|
for (p = c->buffer; *p && *p != '\r' && *p != '\n'; ) { |
|
|
|
if (av_strncasecmp(p, "User-Agent:", 11) == 0) { |
|
|
|
if (av_strncasecmp(p, "User-Agent:", 11) == 0) { |
|
|
|
useragent = p + 11; |
|
|
|
useragent = p + 11; |
|
|
|
if (*useragent && *useragent != '\n' && isspace(*useragent)) |
|
|
|
if (*useragent && *useragent != '\n' && av_isspace(*useragent)) |
|
|
|
useragent++; |
|
|
|
useragent++; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -1654,7 +1654,7 @@ static int http_parse_request(HTTPContext *c) |
|
|
|
char *eoh; |
|
|
|
char *eoh; |
|
|
|
char hostbuf[260]; |
|
|
|
char hostbuf[260]; |
|
|
|
|
|
|
|
|
|
|
|
while (isspace(*hostinfo)) |
|
|
|
while (av_isspace(*hostinfo)) |
|
|
|
hostinfo++; |
|
|
|
hostinfo++; |
|
|
|
|
|
|
|
|
|
|
|
eoh = strchr(hostinfo, '\n'); |
|
|
|
eoh = strchr(hostinfo, '\n'); |
|
|
@ -4060,7 +4060,7 @@ static int parse_ffconfig(const char *filename) |
|
|
|
break; |
|
|
|
break; |
|
|
|
line_num++; |
|
|
|
line_num++; |
|
|
|
p = line; |
|
|
|
p = line; |
|
|
|
while (isspace(*p)) |
|
|
|
while (av_isspace(*p)) |
|
|
|
p++; |
|
|
|
p++; |
|
|
|
if (*p == '\0' || *p == '#') |
|
|
|
if (*p == '\0' || *p == '#') |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -4198,7 +4198,7 @@ static int parse_ffconfig(const char *filename) |
|
|
|
get_arg(arg, sizeof(arg), &p); |
|
|
|
get_arg(arg, sizeof(arg), &p); |
|
|
|
p1 = arg; |
|
|
|
p1 = arg; |
|
|
|
fsize = strtod(p1, &p1); |
|
|
|
fsize = strtod(p1, &p1); |
|
|
|
switch(toupper(*p1)) { |
|
|
|
switch(av_toupper(*p1)) { |
|
|
|
case 'K': |
|
|
|
case 'K': |
|
|
|
fsize *= 1024; |
|
|
|
fsize *= 1024; |
|
|
|
break; |
|
|
|
break; |
|
|
|