[FFmpeg-devel] [PATCH v2 5/9] libswresample: Split version.h
Martin Storsjö
martin at martin.st
Fri Mar 11 14:18:26 EET 2022
---
fftools/cmdutils.c | 1 +
fftools/ffprobe.c | 1 +
libswresample/Makefile | 1 +
libswresample/swresample.c | 1 +
libswresample/swresample.h | 2 +-
libswresample/version.h | 3 ++-
libswresample/version_major.h | 31 +++++++++++++++++++++++++++++++
7 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 libswresample/version_major.h
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index f52015708c..dd5d4f5849 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -38,6 +38,7 @@
#include "libavdevice/version.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
+#include "libswresample/version.h"
#include "libpostproc/postprocess.h"
#include "libpostproc/version.h"
#include "libavutil/attributes.h"
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 203f062935..7d8ab0392e 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -56,6 +56,7 @@
#include "libavdevice/version.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
+#include "libswresample/version.h"
#include "libpostproc/postprocess.h"
#include "libpostproc/version.h"
#include "cmdutils.h"
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 16734c9df9..82e979c4c9 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 c7b84fbcac..aebdbafcfc 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -124,7 +124,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 61d0057cf5..9a514e6d6f 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 4
#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 */
--
2.32.0 (Apple Git-132)
More information about the ffmpeg-devel
mailing list