summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/qsv_common.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c
index d9143c8fd..20467fdbd 100644
--- a/libhb/qsv_common.c
+++ b/libhb/qsv_common.c
@@ -1651,10 +1651,12 @@ const char* hb_qsv_impl_get_name(int impl)
void hb_qsv_force_workarounds()
{
- qsv_software_info_avc.capabilities &= ~HB_QSV_CAP_MSDK_API_1_6;
- qsv_hardware_info_avc.capabilities &= ~HB_QSV_CAP_MSDK_API_1_6;
- qsv_software_info_hevc.capabilities &= ~HB_QSV_CAP_MSDK_API_1_6;
- qsv_hardware_info_hevc.capabilities &= ~HB_QSV_CAP_MSDK_API_1_6;
+#define FORCE_WORKAROUNDS ~(HB_QSV_CAP_OPTION2_BREFTYPE)
+ qsv_software_info_avc.capabilities &= FORCE_WORKAROUNDS;
+ qsv_hardware_info_avc.capabilities &= FORCE_WORKAROUNDS;
+ qsv_software_info_hevc.capabilities &= FORCE_WORKAROUNDS;
+ qsv_hardware_info_hevc.capabilities &= FORCE_WORKAROUNDS;
+#undef FORCE_WORKAROUNDS
}
#endif // USE_QSV