mirror of https://github.com/mpv-player/mpv
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`.
This commit is contained in:
parent
7fe2a76621
commit
e64ef6089f
|
@ -1250,7 +1250,7 @@ Video
|
||||||
:no: always use software decoding (default)
|
:no: always use software decoding (default)
|
||||||
:auto-safe: enable any whitelisted hw decoder (see below)
|
:auto-safe: enable any whitelisted hw decoder (see below)
|
||||||
:auto: forcibly enable any hw decoder found (see below)
|
:auto: forcibly enable any hw decoder found (see below)
|
||||||
:yes: exactly the same as ``auto``
|
:yes: exactly the same as ``auto-safe``
|
||||||
:auto-copy: enable best hw decoder with copy-back (see below)
|
:auto-copy: enable best hw decoder with copy-back (see below)
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
|
@ -479,10 +479,10 @@ static void select_and_set_hwdec(struct mp_filter *vd)
|
||||||
|
|
||||||
bool hwdec_requested = !bstr_equals0(opt, "no");
|
bool hwdec_requested = !bstr_equals0(opt, "no");
|
||||||
bool hwdec_auto_all = bstr_equals0(opt, "auto") ||
|
bool hwdec_auto_all = bstr_equals0(opt, "auto") ||
|
||||||
bstr_equals0(opt, "yes") ||
|
|
||||||
bstr_equals0(opt, "");
|
bstr_equals0(opt, "");
|
||||||
bool hwdec_auto_safe = bstr_equals0(opt, "auto-safe") ||
|
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") ||
|
bool hwdec_auto_copy = bstr_equals0(opt, "auto-copy") ||
|
||||||
bstr_equals0(opt, "auto-copy-safe");
|
bstr_equals0(opt, "auto-copy-safe");
|
||||||
bool hwdec_auto = hwdec_auto_all || hwdec_auto_copy || hwdec_auto_safe;
|
bool hwdec_auto = hwdec_auto_all || hwdec_auto_copy || hwdec_auto_safe;
|
||||||
|
|
Loading…
Reference in New Issue