Browse code

merge declaration and init

Originally committed as revision 13861 to svn://svn.ffmpeg.org/ffmpeg/trunk

Baptiste Coudurier authored on 2008/06/22 09:54:25
Showing 1 changed files
... ...
@@ -292,10 +292,10 @@ static int ffserver_daemon;
292 292
 static int no_launch;
293 293
 static int need_to_start_children;
294 294
 
295
-static int nb_max_connections;
295
+static int nb_max_connections = 5;
296 296
 static int nb_connections;
297 297
 
298
-static uint64_t max_bandwidth;
298
+static uint64_t max_bandwidth = 1000;
299 299
 static uint64_t current_bandwidth;
300 300
 
301 301
 static int64_t cur_time;           // Making this global saves on passing it around everywhere
... ...
@@ -4463,8 +4463,6 @@ int main(int argc, char **argv)
4463 4463
 
4464 4464
     av_init_random(av_gettime() + (getpid() << 16), &random_state);
4465 4465
 
4466
-    nb_max_connections = 5;
4467
-    max_bandwidth = 1000;
4468 4466
     first_stream = NULL;
4469 4467
 
4470 4468
     memset(&sigact, 0, sizeof(sigact));