History

Add FFMPEG_VERSION into the binary libs

This simplifies identifying from which revision a binary of a lib came from

Michael Niedermayer committed 11 years ago

Commit 649c1581 parent 869b56c7 files · +21 −0Browse files

Unified · Split

7 files
  1. libavcodec/utils.c +3 −0
  2. libavdevice/avdevice.c +3 −0
  3. libavfilter/avfilter.c +3 −0
  4. libavformat/utils.c +3 −0
  5. libavutil/utils.c +3 −0
  6. libpostproc/postprocess.c +3 −0
  7. libswresample/swresample.c +3 −0
libavcodec/utils.c+3−0
@@ -66,6 +66,9 @@ · 65 unmodified lines
6666 #include "compat/os2threads.h"
6767 #endif
6868
69+#include "libavutil/ffversion.h"
70+const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
71+
6972 #if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
7073 static int default_lockmgr_cb(void **arg, enum AVLockOp op)
7174 {
libavdevice/avdevice.c+3−0
@@ -23,6 +23,9 @@ · 22 unmodified lines
2323 #include "avdevice.h"
2424 #include "config.h"
2525
26+#include "libavutil/ffversion.h"
27+const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
28+
2629 #define E AV_OPT_FLAG_ENCODING_PARAM
2730 #define D AV_OPT_FLAG_DECODING_PARAM
2831 #define A AV_OPT_FLAG_AUDIO_PARAM
libavfilter/avfilter.c+3−0
@@ -37,6 +37,9 @@ · 36 unmodified lines
3737 #include "formats.h"
3838 #include "internal.h"
3939
40+#include "libavutil/ffversion.h"
41+const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
42+
4043 static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame);
4144
4245 void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
libavformat/utils.c+3−0
@@ -53,6 +53,9 @@ · 52 unmodified lines
5353 #include "riff.h"
5454 #include "url.h"
5555
56+#include "libavutil/ffversion.h"
57+const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
58+
5659 /**
5760 * @file
5861 * various utility functions for use within FFmpeg
libavutil/utils.c+3−0
@@ -27,6 +27,9 @@ · 26 unmodified lines
2727 * various utility functions
2828 */
2929
30+#include "libavutil/ffversion.h"
31+const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
32+
3033 unsigned avutil_version(void)
3134 {
3235 static int checks_done;
libpostproc/postprocess.c+3−0
@@ -89,6 +89,9 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks · 88 unmodified lines
8989 #include "postprocess_internal.h"
9090 #include "libavutil/avstring.h"
9191
92+#include "libavutil/ffversion.h"
93+const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
94+
9295 unsigned postproc_version(void)
9396 {
9497 av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100);
libswresample/swresample.c+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
2828
2929 #define ALIGN 32
3030
31+#include "libavutil/ffversion.h"
32+const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
33+
3134 unsigned swresample_version(void)
3235 {
3336 av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t