summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-03-10 10:30:35 -0600
committerJohn Stebbins <[email protected]>2019-03-10 10:32:14 -0600
commit434275d471cd163514a9e981277c10dfb72d07b8 (patch)
treedb381d2f49cce30bf4b0d835f0a6c1190e57310b /libhb
parentce7348ba9d2c094db9dc720fdcfa96a545d65cba (diff)
qsv: fix logging of implementation 'via' option
implementation is not a bit vector. It has bit fields.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/qsv_common.c8
1 files changed, 4 insertions, 4 deletions
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;
}