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:
Philip Langdale 2023-07-02 10:13:42 -07:00 committed by Philip Langdale
parent 7fe2a76621
commit e64ef6089f
2 changed files with 3 additions and 3 deletions

View File

@ -1250,7 +1250,7 @@ Video
:no: always use software decoding (default)
:auto-safe: enable any whitelisted hw decoder (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)
.. note::

View File

@ -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;