diff options
author | Philip Langdale <philipl@overt.org> | 2023-07-02 10:13:42 -0700 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-07-14 20:41:24 -0700 |
commit | e64ef6089f49e2b698d58f0eaec263f23eb6f4ee (patch) | |
tree | ed5aa65cd1f54319f8f62718088f2c85049ec649 /video | |
parent | 7fe2a76621f15c11298fdbc55a13f878b35a36bf (diff) | |
download | mpv-e64ef6089f49e2b698d58f0eaec263f23eb6f4ee.tar.bz2 mpv-e64ef6089f49e2b698d58f0eaec263f23eb6f4ee.tar.xz |
vd_lavc: map `hwdec=yes` to `hwdec=auto-safe`
To remain consistent with our belief that `auto-safe` should be the
recommended mode when turning on hw decoding, let's remap `yes` from
`auto` to `auto-safe`.
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 33a6da85d2..7260904b03 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -479,10 +479,10 @@ static void select_and_set_hwdec(struct mp_filter *vd) bool hwdec_requested = !bstr_equals0(opt, "no"); bool hwdec_auto_all = bstr_equals0(opt, "auto") || - bstr_equals0(opt, "yes") || bstr_equals0(opt, ""); bool hwdec_auto_safe = bstr_equals0(opt, "auto-safe") || - bstr_equals0(opt, "auto-copy-safe"); + bstr_equals0(opt, "auto-copy-safe") || + bstr_equals0(opt, "yes"); bool hwdec_auto_copy = bstr_equals0(opt, "auto-copy") || bstr_equals0(opt, "auto-copy-safe"); bool hwdec_auto = hwdec_auto_all || hwdec_auto_copy || hwdec_auto_safe; |