diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-01-18 21:40:26 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-01-18 21:40:26 +0000 |
commit | ef4c0bb1dcbd8438ec9a6126cd92e4b97d859217 (patch) | |
tree | 3b93f243389c23830494a074f7b86d190c4bdc77 /cmdutils.c | |
parent | 77c45373137c562ef3489e237e23f14fd04e6b8c (diff) | |
download | ffmpeg-ef4c0bb1dcbd8438ec9a6126cd92e4b97d859217.tar.gz |
Implement a var for containing the current year number rather than
hardcode it in the banner string.
Originally committed as revision 16678 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 4a646a20cb..b28c00d8fa 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -48,6 +48,8 @@ AVCodecContext *avctx_opts[CODEC_TYPE_NB]; AVFormatContext *avformat_opts; struct SwsContext *sws_opts; +const int this_year = 2009; + double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max) { char *tail; @@ -286,8 +288,8 @@ static void print_all_lib_versions(FILE* outstream, int indent) void show_banner(void) { - fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-2009 Fabrice Bellard, et al.\n", - program_name, program_birth_year); + fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d Fabrice Bellard, et al.\n", + program_name, program_birth_year, this_year); fprintf(stderr, " configuration: " FFMPEG_CONFIGURATION "\n"); print_all_lib_versions(stderr, 1); fprintf(stderr, " built on " __DATE__ " " __TIME__); |