]> git.sesse.net Git - ffmpeg/commitdiff
Implement a var for containing the current year number rather than
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Jan 2009 21:40:26 +0000 (21:40 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Jan 2009 21:40:26 +0000 (21:40 +0000)
hardcode it in the banner string.

Originally committed as revision 16678 to svn://svn.ffmpeg.org/ffmpeg/trunk

cmdutils.c
cmdutils.h

index 4a646a20cbe7808a14715d82fed25174110f5bd5..b28c00d8fa6b89522f4f3f299cff3726ab2fa7b1 100644 (file)
@@ -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__);
index beba333236e22c14885e0b53171f74d9a74f8241..39f49195a2d6df63737b8a2840c3fcd0e68323af 100644 (file)
@@ -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;