lib*/version: Move library version functions into files of their own
This avoids having to rebuild big files every time FFMPEG_VERSION changes (which it does with every commit). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3417379d5e
commit
f2b79c5b85
26 changed files with 397 additions and 202 deletions
|
|
@ -29,10 +29,8 @@
|
|||
#include "libavutil/hwcontext.h"
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "libavutil/rational.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "libavutil/thread.h"
|
||||
|
||||
#define FF_INTERNAL_FIELDS 1
|
||||
#include "framequeue.h"
|
||||
|
|
@ -43,10 +41,6 @@
|
|||
#include "formats.h"
|
||||
#include "framepool.h"
|
||||
#include "internal.h"
|
||||
#include "version.h"
|
||||
|
||||
#include "libavutil/ffversion.h"
|
||||
const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
|
||||
|
||||
static void tlog_ref(void *ctx, AVFrame *ref, int end)
|
||||
{
|
||||
|
|
@ -75,23 +69,6 @@ static void tlog_ref(void *ctx, AVFrame *ref, int end)
|
|||
ff_tlog(ctx, "]%s", end ? "\n" : "");
|
||||
}
|
||||
|
||||
unsigned avfilter_version(void)
|
||||
{
|
||||
av_assert0(LIBAVFILTER_VERSION_MICRO >= 100);
|
||||
return LIBAVFILTER_VERSION_INT;
|
||||
}
|
||||
|
||||
const char *avfilter_configuration(void)
|
||||
{
|
||||
return FFMPEG_CONFIGURATION;
|
||||
}
|
||||
|
||||
const char *avfilter_license(void)
|
||||
{
|
||||
#define LICENSE_PREFIX "libavfilter license: "
|
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1];
|
||||
}
|
||||
|
||||
void ff_command_queue_pop(AVFilterContext *filter)
|
||||
{
|
||||
AVFilterCommand *c= filter->command_queue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue