summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-22 00:54:25 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-22 00:54:25 +0000
commitf69bb0cc1c06afa0ac390b2ceb4af9c34866d3f2 (patch)
tree8cd9c0dd017a81dd6d2869965e4bb9c95a3adae5
parent2b9cd1e78acba5e5642b220ea9dc16384c7132c0 (diff)
merge declaration and init
Originally committed as revision 13861 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ffserver.c b/ffserver.c
index f40f229c78..bf95a88ffb 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -292,10 +292,10 @@ static int ffserver_daemon;
static int no_launch;
static int need_to_start_children;
-static int nb_max_connections;
+static int nb_max_connections = 5;
static int nb_connections;
-static uint64_t max_bandwidth;
+static uint64_t max_bandwidth = 1000;
static uint64_t current_bandwidth;
static int64_t cur_time; // Making this global saves on passing it around everywhere
@@ -4463,8 +4463,6 @@ int main(int argc, char **argv)
av_init_random(av_gettime() + (getpid() << 16), &random_state);
- nb_max_connections = 5;
- max_bandwidth = 1000;
first_stream = NULL;
memset(&sigact, 0, sizeof(sigact));