[FFmpeg-cvslog] r13842 - trunk/ffserver.c

bcoudurier subversion
Sat Jun 21 05:26:25 CEST 2008


Author: bcoudurier
Date: Sat Jun 21 05:26:24 2008
New Revision: 13842

Log:
upgrade bandwith config to use int64_t, raise limit

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Jun 21 05:26:24 2008
@@ -3776,14 +3776,15 @@ static int parse_ffconfig(const char *fi
                 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")) {




More information about the ffmpeg-cvslog mailing list