[FFmpeg-cvslog] configure: define CONFIG_THIS_YEAR at the configure level

Stefano Sabatini git at videolan.org
Tue Nov 26 10:00:26 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Mon Nov 25 23:28:11 2013 +0100| [4c4710a745ae484d1a17288f141c96fdd664ec73] | committer: Stefano Sabatini

configure: define CONFIG_THIS_YEAR at the configure level

The macro value can be shared between configure script and cmdutils.c.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c4710a745ae484d1a17288f141c96fdd664ec73
---

 cmdutils.c |    2 +-
 configure  |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmdutils.c b/cmdutils.c
index c7e8acf..ebb747a 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -69,7 +69,7 @@ struct SwsContext *sws_opts;
 AVDictionary *swr_opts;
 AVDictionary *format_opts, *codec_opts, *resample_opts;
 
-const int this_year = 2013;
+const int this_year = CONFIG_THIS_YEAR;
 
 static FILE *report_file;
 
diff --git a/configure b/configure
index 4aeeb80..aaf5c8f 100755
--- a/configure
+++ b/configure
@@ -4919,6 +4919,7 @@ cat > $TMPH <<EOF
 #define FFMPEG_CONFIG_H
 #define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
 #define FFMPEG_LICENSE "$(c_escape $license)"
+#define CONFIG_THIS_YEAR 2013
 #define FFMPEG_DATADIR "$(eval c_escape $datadir)"
 #define AVCONV_DATADIR "$(eval c_escape $datadir)"
 #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})"



More information about the ffmpeg-cvslog mailing list