summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-02-23 14:29:24 +0200
committerMartin Storsjö <martin@martin.st>2022-03-16 14:05:26 +0200
commit4332d6c4d57f2a60dc90543ca37ceb77381e13bc (patch)
tree7c7c9c95a50b50397d0ee36aa08daa8b812bc1b1 /libswresample
parent0f8b0b9ce2d6119ee01f75d2e7e3a956c91804ff (diff)
downloadffmpeg-4332d6c4d57f2a60dc90543ca37ceb77381e13bc.tar.gz
libswresample: Split version.h
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/Makefile1
-rw-r--r--libswresample/swresample.c1
-rw-r--r--libswresample/swresample.h2
-rw-r--r--libswresample/version.h3
-rw-r--r--libswresample/version_major.h31
5 files changed, 36 insertions, 2 deletions
diff --git a/libswresample/Makefile b/libswresample/Makefile
index f528427f55..b74ee20987 100644
--- a/libswresample/Makefile
+++ b/libswresample/Makefile
@@ -4,6 +4,7 @@ FFLIBS = avutil
HEADERS = swresample.h \
version.h \
+ version_major.h \
OBJS = audioconvert.o \
dither.o \
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 5328e6c1ff..be59b69b73 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -24,6 +24,7 @@
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
+#include "version.h"
#include <float.h>
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index f965a38eaf..2c4eb3562d 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -125,7 +125,7 @@
#include "libavutil/frame.h"
#include "libavutil/samplefmt.h"
-#include "libswresample/version.h"
+#include "libswresample/version_major.h"
/**
* @name Option constants
diff --git a/libswresample/version.h b/libswresample/version.h
index e16bbbb10d..cf32791e50 100644
--- a/libswresample/version.h
+++ b/libswresample/version.h
@@ -28,7 +28,8 @@
#include "libavutil/version.h"
-#define LIBSWRESAMPLE_VERSION_MAJOR 4
+#include "version_major.h"
+
#define LIBSWRESAMPLE_VERSION_MINOR 5
#define LIBSWRESAMPLE_VERSION_MICRO 100
diff --git a/libswresample/version_major.h b/libswresample/version_major.h
new file mode 100644
index 0000000000..7f265c2073
--- /dev/null
+++ b/libswresample/version_major.h
@@ -0,0 +1,31 @@
+/*
+ * Version macros.
+ *
+ * This file is part of libswresample
+ *
+ * libswresample is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * libswresample is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with libswresample; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef SWRESAMPLE_VERSION_MAJOR_H
+#define SWRESAMPLE_VERSION_MAJOR_H
+
+/**
+ * @file
+ * Libswresample version macros
+ */
+
+#define LIBSWRESAMPLE_VERSION_MAJOR 4
+
+#endif /* SWRESAMPLE_VERSION_MAJOR_H */