From 0dc17c21ecb31831f3a1a89bbd400d3e1fb5b96d Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sat, 21 Jun 2008 03:26:24 +0000 Subject: [PATCH] upgrade bandwidth config to use int64_t, raise limit Originally committed as revision 13842 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ffserver.c b/ffserver.c index a061cfa9a1..864f150b1b 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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, "