summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2007-09-27 06:38:40 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-09-27 06:38:40 +0000
commit86074ed1b7d32f504a942bdcb0b40f2830d27e54 (patch)
treea3f5e61723fd58c271cfc0353c60d4b870a1ea2d /ffserver.c
parent20693c85b2910828d424db9761ab25ea7f99f5ce (diff)
Implement common show version and banner.
Patch by Stefano Sabatini [stefano sabatini-lala poste it] Originally committed as revision 10600 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/ffserver.c b/ffserver.c
index 90bc908973..ef96078766 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -53,6 +53,9 @@
#undef exit
+static const char program_name[] = "FFserver";
+static const int program_birth_year = 2000;
+
/* maximum number of simultaneous HTTP connections */
#define HTTP_MAX_CONNECTIONS 2000
@@ -4313,14 +4316,9 @@ static int parse_ffconfig(const char *filename)
return 0;
}
-static void show_banner(void)
-{
- printf("ffserver version " FFMPEG_VERSION ", Copyright (c) 2000-2006 Fabrice Bellard, et al.\n");
-}
-
static void show_help(void)
{
- show_banner();
+ show_banner(program_name, program_birth_year);
printf("usage: ffserver [-L] [-h] [-f configfile]\n"
"Hyper fast multi format Audio/Video streaming server\n"
"\n"
@@ -4375,7 +4373,7 @@ int main(int argc, char **argv)
break;
switch(c) {
case 'L':
- show_banner();
+ show_banner(program_name, program_birth_year);
show_license();
exit(0);
case '?':