summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_lavrresample.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-27 09:57:01 +0100
committerwm4 <wm4@nowhere>2017-01-27 09:57:01 +0100
commitcfda696580a994055e4532a273ce86c867ffdac4 (patch)
treeec58b108f5444ca888732576c79e076088e931b0 /audio/filter/af_lavrresample.c
parenta9e0f4b2793091991dfca4fba715f7a6635e797d (diff)
downloadmpv-cfda696580a994055e4532a273ce86c867ffdac4.tar.bz2
mpv-cfda696580a994055e4532a273ce86c867ffdac4.tar.xz
build: explicitly check for FFmpeg vs. Libav, and their exact versions
In a first pass, we check whether libavcodec is present. Then we try to compile a snippet and check for FFmpeg vs. Libav. (This could probably also be done by somehow checking the pkgconfig version. But pkg-config can't deal with that idiotic FFmpeg idea that a micro version number >= 100 identifies FFmpeg vs. Libav.) After that we check the project-specific version numbers. This means it can no longer happen that we accidentally allow older, unsupported versions of FFmpeg, just because the Libav version numbers are somehow this way. Also drop the resampler checks. We hardcode which resampler to each with each project. A user can no longer force use of libavresample with FFmpeg.
Diffstat (limited to 'audio/filter/af_lavrresample.c')
-rw-r--r--audio/filter/af_lavrresample.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c
index 828be66247..47c374b227 100644
--- a/audio/filter/af_lavrresample.c
+++ b/audio/filter/af_lavrresample.c
@@ -36,6 +36,9 @@
#include "common/common.h"
#include "config.h"
+#define HAVE_LIBSWRESAMPLE HAVE_IS_FFMPEG
+#define HAVE_LIBAVRESAMPLE HAVE_IS_LIBAV
+
#if HAVE_LIBAVRESAMPLE
#include <libavresample/avresample.h>
#elif HAVE_LIBSWRESAMPLE