diff options
Diffstat (limited to 'libhb/vce_common.c')
-rw-r--r-- | libhb/vce_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libhb/vce_common.c b/libhb/vce_common.c index e5293705b..ab545eab0 100644 --- a/libhb/vce_common.c +++ b/libhb/vce_common.c @@ -98,11 +98,21 @@ clean: int hb_vce_h264_available() { + if (is_hardware_disabled()) + { + return 0; + } + return (check_component_available(AMFVideoEncoderVCE_AVC) == AMF_OK) ? 1 : 0; } int hb_vce_h265_available() { + if (is_hardware_disabled()) + { + return 0; + } + return (check_component_available(AMFVideoEncoder_HEVC) == AMF_OK) ? 1 : 0; } |