summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md19
-rw-r--r--audio/aconverter.c2
-rw-r--r--common/av_log.c6
-rw-r--r--wscript13
4 files changed, 18 insertions, 22 deletions
diff --git a/README.md b/README.md
index 6077562a66..aa728f6962 100644
--- a/README.md
+++ b/README.md
@@ -147,17 +147,14 @@ with FFmpeg only (subtitle formats in particular).
## Preferred FFmpeg version
-
-Using the latest FFmpeg release (or FFmpeg git master) is strongly recommended.
-Older versions are unsupported, even if the build system still happens to
-accept them. The main reason mpv still builds with older FFmpeg versions is to
-evade arguing with people (users, distros) who insist on using older FFmpeg
-versions for no rational reason.
-
-If you want to use a stable FFmpeg release, use the latest release, which has
-most likely the best maintenance out of all stable releases. Older releases
-are for distros, and at best receive basic changes, like fixing critical security
-issues or build fixes, and at worst are completely abandoned.
+Only [ffmpeg-mpv][ffmpeg-mpv] is supported. Upstream FFmpeg can be forced by
+passing a certain switch to configure, but compilation or runtime behavior
+might be broken at times.
+
+_If_ you force upstream FFmpeg, and it doesn't work, please contact upstream
+FFmpeg for help, instead of mpv. See
+[FFmpeg contact][http://ffmpeg.org/contact.html#MailingLists] how to contact
+FFmpeg upstream.
## FFmpeg ABI compatibility
diff --git a/audio/aconverter.c b/audio/aconverter.c
index bae0ab7d19..a9025278cb 100644
--- a/audio/aconverter.c
+++ b/audio/aconverter.c
@@ -33,7 +33,7 @@
#include "fmt-conversion.h"
#include "format.h"
-#define HAVE_LIBSWRESAMPLE HAVE_FFMPEG_MPV
+#define HAVE_LIBSWRESAMPLE (!HAVE_LIBAV)
#define HAVE_LIBAVRESAMPLE HAVE_LIBAV
#if HAVE_LIBAVRESAMPLE
diff --git a/common/av_log.c b/common/av_log.c
index e5f54844cf..468e50502e 100644
--- a/common/av_log.c
+++ b/common/av_log.c
@@ -44,8 +44,7 @@
#if HAVE_LIBAV
#include <libavresample/avresample.h>
-#endif
-#if HAVE_FFMPEG_MPV
+#else
#include <libswresample/swresample.h>
#endif
@@ -199,8 +198,7 @@ bool print_libav_versions(struct mp_log *log, int v)
{"libavfilter", LIBAVFILTER_VERSION_INT, avfilter_version()},
#if HAVE_LIBAV
{"libavresample", LIBAVRESAMPLE_VERSION_INT, avresample_version()},
-#endif
-#if HAVE_FFMPEG_MPV
+#else
{"libswresample", LIBSWRESAMPLE_VERSION_INT, swresample_version()},
#endif
};
diff --git a/wscript b/wscript
index 5a389f16f2..19d9413657 100644
--- a/wscript
+++ b/wscript
@@ -458,21 +458,22 @@ libav_dependencies = [
'req': True,
'fmsg': "FFmpeg/Libav development files not found.",
}, {
- 'name': 'ffmpeg_mpv',
+ 'name': 'ffmpeg-mpv',
'desc': 'libav* is FFmpeg mpv modified version',
'func': check_statement('libavcodec/version.h',
'int x[LIBAVCODEC_MPV ? 1 : -1]',
use='libavcodec')
}, {
- 'name': 'ffmpeg_garbage',
- 'deps': '!ffmpeg_mpv',
+ 'name': '--ffmpeg-garbage',
+ 'deps': '!ffmpeg-mpv',
'desc': 'libav* is upstream FFmpeg (unsupported)',
# FFmpeg <=> LIBAVUTIL_VERSION_MICRO>=100
'func': check_statement('libavcodec/version.h',
'int x[LIBAVCODEC_VERSION_MICRO >= 100 ? 1 : -1]',
- use='libavcodec')
+ use='libavcodec'),
+ 'default': 'disable',
}, {
- # This check should always result in the opposite of is_ffmpeg.
+ # This check should always result in the opposite of ffmpeg-*.
# Run it to make sure is_ffmpeg didn't fail for some other reason than
# the actual version check.
'name': 'libav',
@@ -484,7 +485,7 @@ libav_dependencies = [
}, {
'name': 'libav-any',
'desc': 'Libav/FFmpeg library versions',
- 'deps': 'ffmpeg_mpv || libav',
+ 'deps': 'ffmpeg-mpv || ffmpeg-garbage || libav',
'func': check_ffmpeg_or_libav_versions(),
'req': True,
'fmsg': "Unable to find development files for some of the required \