diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:26:24 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:26:24 +0000 |
commit | 0dc17c21ecb31831f3a1a89bbd400d3e1fb5b96d (patch) | |
tree | 37763d68320b32457e7b556220c5a2f2898e6015 /ffserver.c | |
parent | 1ad8289edece30c4a2c51ad24f093e5421e41ab9 (diff) | |
download | ffmpeg-0dc17c21ecb31831f3a1a89bbd400d3e1fb5b96d.tar.gz |
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.c | 7 |
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")) { |