summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-02-23 12:55:45 +0200
committerMartin Storsjö <martin@martin.st>2022-03-16 14:04:35 +0200
commitf2da2e1458b76a1d6c068673430b46cf2850bc51 (patch)
tree0f71402af80541921cd1ae0d44e730f6177a6db0 /fftools
parentf2fe17c56d33bfc5bd04d804603036a4f935b69b (diff)
libavcodec: Split version.h
This avoids including version.h in all source files, avoiding unnecessary rebuilds when the version number is bumped. Only version_major.h is included by the main header, which defines availability of e.g. FF_API_* macros, and which is bumped much less often. This isn't done for libavutil/version.h, because that header needs to be included essentially everywhere due to LIBAVUTIL_VERSION_INT being used wherever an AVClass is constructed. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'fftools')
-rw-r--r--fftools/cmdutils.c1
-rw-r--r--fftools/ffmpeg.c1
-rw-r--r--fftools/ffprobe.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 55cdbfb7a7..078a9b520f 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -55,6 +55,7 @@
#include "libavutil/ffversion.h"
#include "libavutil/version.h"
#include "libavcodec/bsf.h"
+#include "libavcodec/version.h"
#include "cmdutils.h"
#if HAVE_SYS_RESOURCE_H
#include <sys/time.h>
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index a98e49b775..5e4a256aad 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -64,6 +64,7 @@
#include "libavutil/thread.h"
#include "libavutil/threadmessage.h"
#include "libavcodec/mathops.h"
+#include "libavcodec/version.h"
#include "libavformat/os_support.h"
# include "libavfilter/avfilter.h"
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 6de6cc2393..44d0ea3049 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -30,6 +30,7 @@
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
+#include "libavcodec/version.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"