You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -66,6 +66,9 @@
|
|||||||
#include "compat/os2threads.h"
|
#include "compat/os2threads.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
|
#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
|
||||||
static int default_lockmgr_cb(void **arg, enum AVLockOp op)
|
static int default_lockmgr_cb(void **arg, enum AVLockOp op)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,9 @@
|
|||||||
#include "avdevice.h"
|
#include "avdevice.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
#define E AV_OPT_FLAG_ENCODING_PARAM
|
#define E AV_OPT_FLAG_ENCODING_PARAM
|
||||||
#define D AV_OPT_FLAG_DECODING_PARAM
|
#define D AV_OPT_FLAG_DECODING_PARAM
|
||||||
#define A AV_OPT_FLAG_AUDIO_PARAM
|
#define A AV_OPT_FLAG_AUDIO_PARAM
|
||||||
|
@@ -37,6 +37,9 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame);
|
static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame);
|
||||||
|
|
||||||
void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
|
void ff_tlog_ref(void *ctx, AVFrame *ref, int end)
|
||||||
|
@@ -53,6 +53,9 @@
|
|||||||
#include "riff.h"
|
#include "riff.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* various utility functions for use within FFmpeg
|
* various utility functions for use within FFmpeg
|
||||||
|
@@ -27,6 +27,9 @@
|
|||||||
* various utility functions
|
* various utility functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
unsigned avutil_version(void)
|
unsigned avutil_version(void)
|
||||||
{
|
{
|
||||||
static int checks_done;
|
static int checks_done;
|
||||||
|
@@ -89,6 +89,9 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
|
|||||||
#include "postprocess_internal.h"
|
#include "postprocess_internal.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
unsigned postproc_version(void)
|
unsigned postproc_version(void)
|
||||||
{
|
{
|
||||||
av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100);
|
av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100);
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
#define ALIGN 32
|
#define ALIGN 32
|
||||||
|
|
||||||
|
#include "libavutil/ffversion.h"
|
||||||
|
const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||||
|
|
||||||
unsigned swresample_version(void)
|
unsigned swresample_version(void)
|
||||||
{
|
{
|
||||||
av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100);
|
av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100);
|
||||||
|
Reference in New Issue
Block a user