This simplifies identifying from which revision a binary of a lib came from
Unified · Split
| @@ -66,6 +66,9 @@ · 65 unmodified lines | ||
| 66 | 66 | #include "compat/os2threads.h" |
| 67 | 67 | #endif |
| 68 | 68 | |
| 69 | +#include "libavutil/ffversion.h" | |
| 70 | +const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 71 | + | |
| 69 | 72 | #if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS |
| 70 | 73 | static int default_lockmgr_cb(void **arg, enum AVLockOp op) |
| 71 | 74 | { |
| @@ -23,6 +23,9 @@ · 22 unmodified lines | ||
| 23 | 23 | #include "avdevice.h" |
| 24 | 24 | #include "config.h" |
| 25 | 25 | |
| 26 | +#include "libavutil/ffversion.h" | |
| 27 | +const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 28 | + | |
| 26 | 29 | #define E AV_OPT_FLAG_ENCODING_PARAM |
| 27 | 30 | #define D AV_OPT_FLAG_DECODING_PARAM |
| 28 | 31 | #define A AV_OPT_FLAG_AUDIO_PARAM |
| @@ -37,6 +37,9 @@ · 36 unmodified lines | ||
| 37 | 37 | #include "formats.h" |
| 38 | 38 | #include "internal.h" |
| 39 | 39 | |
| 40 | +#include "libavutil/ffversion.h" | |
| 41 | +const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 42 | + | |
| 40 | 43 | static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame); |
| 41 | 44 | |
| 42 | 45 | void ff_tlog_ref(void *ctx, AVFrame *ref, int end) |
| @@ -53,6 +53,9 @@ · 52 unmodified lines | ||
| 53 | 53 | #include "riff.h" |
| 54 | 54 | #include "url.h" |
| 55 | 55 | |
| 56 | +#include "libavutil/ffversion.h" | |
| 57 | +const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 58 | + | |
| 56 | 59 | /** |
| 57 | 60 | * @file |
| 58 | 61 | * various utility functions for use within FFmpeg |
| @@ -27,6 +27,9 @@ · 26 unmodified lines | ||
| 27 | 27 | * various utility functions |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | +#include "libavutil/ffversion.h" | |
| 31 | +const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 32 | + | |
| 30 | 33 | unsigned avutil_version(void) |
| 31 | 34 | { |
| 32 | 35 | static int checks_done; |
| @@ -89,6 +89,9 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks · 88 unmodified lines | ||
| 89 | 89 | #include "postprocess_internal.h" |
| 90 | 90 | #include "libavutil/avstring.h" |
| 91 | 91 | |
| 92 | +#include "libavutil/ffversion.h" | |
| 93 | +const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 94 | + | |
| 92 | 95 | unsigned postproc_version(void) |
| 93 | 96 | { |
| 94 | 97 | av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100); |
| @@ -28,6 +28,9 @@ · 27 unmodified lines | ||
| 28 | 28 | |
| 29 | 29 | #define ALIGN 32 |
| 30 | 30 | |
| 31 | +#include "libavutil/ffversion.h" | |
| 32 | +const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | |
| 33 | + | |
| 31 | 34 | unsigned swresample_version(void) |
| 32 | 35 | { |
| 33 | 36 | av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100); |