[FFmpeg-cvslog] r16678 - in trunk: cmdutils.c cmdutils.h
stefano
subversion
Sun Jan 18 22:40:26 CET 2009
Author: stefano
Date: Sun Jan 18 22:40:26 2009
New Revision: 16678
Log:
Implement a var for containing the current year number rather than
hardcode it in the banner string.
Modified:
trunk/cmdutils.c
trunk/cmdutils.h
Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c Sun Jan 18 21:43:11 2009 (r16677)
+++ trunk/cmdutils.c Sun Jan 18 22:40:26 2009 (r16678)
@@ -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*
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__);
Modified: trunk/cmdutils.h
==============================================================================
--- trunk/cmdutils.h Sun Jan 18 21:43:11 2009 (r16677)
+++ trunk/cmdutils.h Sun Jan 18 22:40:26 2009 (r16678)
@@ -37,6 +37,8 @@ extern const char program_name[];
*/
extern const int program_birth_year;
+extern const int this_year;
+
extern const char **opt_names;
extern AVCodecContext *avctx_opts[CODEC_TYPE_NB];
extern AVFormatContext *avformat_opts;
More information about the ffmpeg-cvslog
mailing list