1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

upgrade bandwidth config to use int64_t, raise limit

Originally committed as revision 13842 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-06-21 03:26:24 +00:00
parent 1ad8289ede
commit 0dc17c21ec

View File

@ -3776,14 +3776,15 @@ static int parse_ffconfig(const char *filename)
nb_max_connections = val;
}
} else if (!strcasecmp(cmd, "MaxBandwidth")) {
int64_t llval;
get_arg(arg, sizeof(arg), &p);
val = atoi(arg);
if (val < 10 || val > 100000) {
llval = atoll(arg);
if (llval < 10 || llval > 10000000) {
fprintf(stderr, "%s:%d: Invalid MaxBandwidth: %s\n",
filename, line_num, arg);
errors++;
} else
max_bandwidth = val;
max_bandwidth = llval;
} else if (!strcasecmp(cmd, "CustomLog")) {
get_arg(logfilename, sizeof(logfilename), &p);
} else if (!strcasecmp(cmd, "<Feed")) {