diff options
author | wm4 <wm4@nowhere> | 2017-01-27 09:57:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-27 09:57:01 +0100 |
commit | cfda696580a994055e4532a273ce86c867ffdac4 (patch) | |
tree | ec58b108f5444ca888732576c79e076088e931b0 /audio | |
parent | a9e0f4b2793091991dfca4fba715f7a6635e797d (diff) | |
download | mpv-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')
-rw-r--r-- | audio/filter/af_lavrresample.c | 3 |
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 |