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>
This commit is contained in:
Martin Storsjö
2022-02-23 12:55:45 +02:00
parent f2fe17c56d
commit f2da2e1458
21 changed files with 78 additions and 32 deletions

View File

@@ -33,7 +33,7 @@
#include "pthread_internal.h"
#include "thread.h"
#include "threadframe.h"
#include "version.h"
#include "version_major.h"
#include "libavutil/avassert.h"
#include "libavutil/buffer.h"