This avoids having to rebuild big files every time FFMPEG_VERSION changes (which it does with every commit).
Showing the changes to libavfilter/avfilter.c (1 of 26 files). Show all
Unified · Split
| @@ -29,10 +29,8 @@ · 28 unmodified lines | |||
| 29 | #include "libavutil/hwcontext.h" | 29 | #include "libavutil/hwcontext.h" |
| 30 | #include "libavutil/internal.h" | 30 | #include "libavutil/internal.h" |
| 31 | #include "libavutil/opt.h" | 31 | #include "libavutil/opt.h" |
| 32 | #include "libavutil/pixdesc.h" | ||
| 33 | #include "libavutil/rational.h" | 32 | #include "libavutil/rational.h" |
| 34 | #include "libavutil/samplefmt.h" | 33 | #include "libavutil/samplefmt.h" |
| 35 | #include "libavutil/thread.h" | ||
| 36 | 34 | ||
| 37 | #define FF_INTERNAL_FIELDS 1 | 35 | #define FF_INTERNAL_FIELDS 1 |
| 38 | #include "framequeue.h" | 36 | #include "framequeue.h" |
| @@ -43,10 +41,6 @@ · 4 unmodified lines | |||
| 43 | #include "formats.h" | 41 | #include "formats.h" |
| 44 | #include "framepool.h" | 42 | #include "framepool.h" |
| 45 | #include "internal.h" | 43 | #include "internal.h" |
| 46 | #include "version.h" | ||
| 47 | |||
| 48 | #include "libavutil/ffversion.h" | ||
| 49 | const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION; | ||
| 50 | 44 | ||
| 51 | static void tlog_ref(void *ctx, AVFrame *ref, int end) | 45 | static void tlog_ref(void *ctx, AVFrame *ref, int end) |
| 52 | { | 46 | { |
| @@ -75,23 +69,6 @@ static void tlog_ref(void *ctx, AVFrame *ref, int end) · 22 unmodified lines | |||
| 75 | ff_tlog(ctx, "]%s", end ? "\n" : ""); | 69 | ff_tlog(ctx, "]%s", end ? "\n" : ""); |
| 76 | } | 70 | } |
| 77 | 71 | ||
| 78 | unsigned avfilter_version(void) | ||
| 79 | { | ||
| 80 | av_assert0(LIBAVFILTER_VERSION_MICRO >= 100); | ||
| 81 | return LIBAVFILTER_VERSION_INT; | ||
| 82 | } | ||
| 83 | |||
| 84 | const char *avfilter_configuration(void) | ||
| 85 | { | ||
| 86 | return FFMPEG_CONFIGURATION; | ||
| 87 | } | ||
| 88 | |||
| 89 | const char *avfilter_license(void) | ||
| 90 | { | ||
| 91 | #define LICENSE_PREFIX "libavfilter license: " | ||
| 92 | return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; | ||
| 93 | } | ||
| 94 | |||
| 95 | void ff_command_queue_pop(AVFilterContext *filter) | 72 | void ff_command_queue_pop(AVFilterContext *filter) |
| 96 | { | 73 | { |
| 97 | AVFilterCommand *c= filter->command_queue; | 74 | AVFilterCommand *c= filter->command_queue; |