[Ffmpeg-devel] [PATCH] Remove upper limit on ffserver's MaxBandwidth

J.R. Oldroyd fbsd
Wed Aug 9 16:13:19 CEST 2006


Is there a reason that there's a hard-coded upper limit of 1000 kbps
on ffserver's MaxBandwidth parameter?  It seems to me this is somewhat
restrictive and need not be so.  I therefore propose the following
patch to remove this upper limit.

	-jr


--- FFMpeg-2006032300/ffserver.c.orig	Tue Aug  8 08:01:09 2006
+++ FFMpeg-2006032300/ffserver.c	Tue Aug  8 08:01:41 2006
@@ -3804,7 +3804,7 @@
         } else if (!strcasecmp(cmd, "MaxBandwidth")) {
             get_arg(arg, sizeof(arg), &p);
             val = atoi(arg);
-            if (val < 10 || val > 1000) {
+            if (val < 10) {
                 fprintf(stderr, "%s:%d: Invalid MaxBandwidth: %s\n",
                         filename, line_num, arg);
                 errors++;




More information about the ffmpeg-devel mailing list