From: John Stebbins Date: Sun, 10 Mar 2019 16:30:35 +0000 (-0600) Subject: qsv: fix logging of implementation 'via' option X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=434275d471cd163514a9e981277c10dfb72d07b8;p=handbrake qsv: fix logging of implementation 'via' option implementation is not a bit vector. It has bit fields. --- diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index f3f3082a7..0069e2f38 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -2219,13 +2219,13 @@ const char* hb_qsv_impl_get_name(int impl) const char* hb_qsv_impl_get_via_name(int impl) { - if (impl & MFX_IMPL_VIA_VAAPI) + if ((impl & 0xF00) == MFX_IMPL_VIA_VAAPI) return "via VAAPI"; - else if (impl & MFX_IMPL_VIA_D3D11) + else if ((impl & 0xF00) == MFX_IMPL_VIA_D3D11) return "via D3D11"; - else if (impl & MFX_IMPL_VIA_D3D9) + else if ((impl & 0xF00) == MFX_IMPL_VIA_D3D9) return "via D3D9"; - else if (impl & MFX_IMPL_VIA_ANY) + else if ((impl & 0xF00) == MFX_IMPL_VIA_ANY) return "via ANY"; else return NULL; }