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