summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-21 03:26:24 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-21 03:26:24 +0000
commit0dc17c21ecb31831f3a1a89bbd400d3e1fb5b96d (patch)
tree37763d68320b32457e7b556220c5a2f2898e6015 /ffserver.c
parent1ad8289edece30c4a2c51ad24f093e5421e41ab9 (diff)
upgrade bandwidth config to use int64_t, raise limit
Originally committed as revision 13842 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c7
1 files 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, "<Feed")) {