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
66#include "compat/os2threads.h"66#include "compat/os2threads.h"
67#endif67#endif
68 68
69#include "libavutil/ffversion.h"
70const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
71
69#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS72#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
70static int default_lockmgr_cb(void **arg, enum AVLockOp op)73static int default_lockmgr_cb(void **arg, enum AVLockOp op)
71{74{
libavdevice/avdevice.c+3−0
@@ -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"
27const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
28
26#define E AV_OPT_FLAG_ENCODING_PARAM29#define E AV_OPT_FLAG_ENCODING_PARAM
27#define D AV_OPT_FLAG_DECODING_PARAM30#define D AV_OPT_FLAG_DECODING_PARAM
28#define A AV_OPT_FLAG_AUDIO_PARAM31#define A AV_OPT_FLAG_AUDIO_PARAM
libavfilter/avfilter.c+3−0
@@ -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"
41const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
42
40static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame);43static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame);
41 44
42void ff_tlog_ref(void *ctx, AVFrame *ref, int end)45void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
libavformat/utils.c+3−0
@@ -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"
57const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
58
56/**59/**
57 * @file60 * @file
58 * various utility functions for use within FFmpeg61 * various utility functions for use within FFmpeg
libavutil/utils.c+3−0
@@ -27,6 +27,9 @@ · 26 unmodified lines
27 * various utility functions27 * various utility functions
28 */28 */
29 29
30#include "libavutil/ffversion.h"
31const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
32
30unsigned avutil_version(void)33unsigned avutil_version(void)
31{34{
32 static int checks_done;35 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
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"
93const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
94
92unsigned postproc_version(void)95unsigned postproc_version(void)
93{96{
94 av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100);97 av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100);
libswresample/swresample.c+3−0
@@ -28,6 +28,9 @@ · 27 unmodified lines
28 28
29#define ALIGN 3229#define ALIGN 32
30 30
31#include "libavutil/ffversion.h"
32const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
33
31unsigned swresample_version(void)34unsigned swresample_version(void)
32{35{
33 av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100);36 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