From 02d504a7d3f0546374cc02ecff45390a0d4faa6b Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sun, 24 Aug 2003 15:29:48 +0000 Subject: more sections in help - copyright fixes Originally committed as revision 2143 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'ffserver.c') diff --git a/ffserver.c b/ffserver.c index 04b3bfc627..b344438120 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4477,23 +4477,27 @@ static void write_packet(FFCodec *ffenc, } #endif -static void help(void) +static void show_banner(void) { - printf("ffserver version " FFMPEG_VERSION ", Copyright (c) 2000, 2001, 2002 Fabrice Bellard\n" - "usage: ffserver [-L] [-h] [-f configfile]\n" + printf("ffserver version " FFMPEG_VERSION ", Copyright (c) 2000-2003 Fabrice Bellard\n"); +} + +static void show_help(void) +{ + show_banner(); + printf("usage: ffserver [-L] [-h] [-f configfile]\n" "Hyper fast multi format Audio/Video streaming server\n" "\n" - "-L : print the LICENCE\n" + "-L : print the LICENSE\n" "-h : this help\n" "-f configfile : use configfile instead of /etc/ffserver.conf\n" ); } -static void licence(void) +static void show_license(void) { + show_banner(); printf( - "ffserver version " FFMPEG_VERSION "\n" - "Copyright (c) 2000, 2001, 2002 Fabrice Bellard\n" "This library is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU Lesser General Public\n" "License as published by the Free Software Foundation; either\n" @@ -4556,11 +4560,11 @@ int main(int argc, char **argv) break; switch(c) { case 'L': - licence(); + show_license(); exit(1); case '?': case 'h': - help(); + show_help(); exit(1); case 'n': no_launch = 1; -- cgit v1.2.3