Commit 35485107 authored by bcoudurier's avatar bcoudurier

upgrade bandwith config to use int64_t, raise limit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13842 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f34ad040
...@@ -3776,14 +3776,15 @@ static int parse_ffconfig(const char *filename) ...@@ -3776,14 +3776,15 @@ static int parse_ffconfig(const char *filename)
nb_max_connections = val; nb_max_connections = val;
} }
} else if (!strcasecmp(cmd, "MaxBandwidth")) { } else if (!strcasecmp(cmd, "MaxBandwidth")) {
int64_t llval;
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
val = atoi(arg); llval = atoll(arg);
if (val < 10 || val > 100000) { if (llval < 10 || llval > 10000000) {
fprintf(stderr, "%s:%d: Invalid MaxBandwidth: %s\n", fprintf(stderr, "%s:%d: Invalid MaxBandwidth: %s\n",
filename, line_num, arg); filename, line_num, arg);
errors++; errors++;
} else } else
max_bandwidth = val; max_bandwidth = llval;
} else if (!strcasecmp(cmd, "CustomLog")) { } else if (!strcasecmp(cmd, "CustomLog")) {
get_arg(logfilename, sizeof(logfilename), &p); get_arg(logfilename, sizeof(logfilename), &p);
} else if (!strcasecmp(cmd, "<Feed")) { } else if (!strcasecmp(cmd, "<Feed")) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment