From f2da2e1458b76a1d6c068673430b46cf2850bc51 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 23 Feb 2022 12:55:45 +0200 Subject: libavcodec: Split version.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavcodec/dpxenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/dpxenc.c') diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index 0db6aa832d..c4f9ae09bb 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -25,6 +25,7 @@ #include "avcodec.h" #include "encode.h" #include "internal.h" +#include "version.h" typedef struct DPXContext { int big_endian; -- cgit v1.2.3