aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-19 18:04:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-22 03:17:56 +0100
commit9f8cdd520b24d8d73fb495d607bf2d73b6cea2e0 (patch)
treef123b47293dd27b924a285999959308bea21ce28 /libavcodec
parentf5631d23e06ac3d1a8148a2989bef4e29ee28e09 (diff)
downloadffmpeg-9f8cdd520b24d8d73fb495d607bf2d73b6cea2e0.tar.gz
Add FFMPEG_VERSION into the binary libs
This simplifies identifying from which revision a binary of a lib came from Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 649c158e8c94ac0cff7f03e97d6ea8bbf71b7f02) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 66fe62cc85..410a05fda5 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -66,6 +66,9 @@
#include "compat/os2threads.h"
#endif
+#include "libavutil/ffversion.h"
+const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
+
#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
static int default_lockmgr_cb(void **arg, enum AVLockOp op)
{