diff options
author | sr55 <[email protected]> | 2019-02-09 18:12:44 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2019-02-11 14:02:17 +0000 |
commit | 30ae1c01c231ac07e798be2b1c0ccb8d5069f968 (patch) | |
tree | e507328c535f1c49e65398af7f6b55fd81a14ede /libhb/qsv_common.c | |
parent | 1728150b7e088eccc89f03ad03f9ea9dcb26cade (diff) |
libhb: Add a hb_global_init_no_hardware that disables all the hardware encoder/decode init and check code. For users where drivers or other system issues prevent HandBrake from loading.
Diffstat (limited to 'libhb/qsv_common.c')
-rw-r--r-- | libhb/qsv_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 64c99ba0a..7376be4b9 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -147,6 +147,11 @@ static int qsv_implementation_is_hardware(mfxIMPL implementation) int hb_qsv_available() { + if (is_hardware_disabled()) + { + return 0; + } + return ((hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H264) ? HB_VCODEC_QSV_H264 : 0) | (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265) ? HB_VCODEC_QSV_H265 : 0) | (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265_10BIT) ? HB_VCODEC_QSV_H265_10BIT : 0)); |