From 9cbe343c9886cf84a85852a4a359e529cc3075dc Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 29 Sep 2018 19:38:05 +0100 Subject: [PATCH] VCE: Try to improve the reliability of the VCE hardware detection. --- libhb/vce_common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libhb/vce_common.c b/libhb/vce_common.c index 21b4bb596..a2a89d866 100644 --- a/libhb/vce_common.c +++ b/libhb/vce_common.c @@ -9,7 +9,8 @@ #ifdef USE_VCE #include "AMF/core/Factory.h" -#include "AMF/components/VideoDecoderUVD.h" +#include "AMF/components/VideoEncoderVCE.h" +#include "AMF/components/VideoEncoderHEVC.h" #include "hb.h" AMF_RESULT check_component_available(const wchar_t *componentID) @@ -103,12 +104,12 @@ clean: int hb_vce_h264_available() { - return (check_component_available(AMFVideoDecoderUVD_H264_AVC) == AMF_OK) ? 1 : 0; + return (check_component_available(AMFVideoEncoderVCE_AVC) == AMF_OK) ? 1 : 0; } int hb_vce_h265_available() { - return (check_component_available(AMFVideoDecoderHW_H265_HEVC) == AMF_OK) ? 1 : 0; + return (check_component_available(AMFVideoEncoder_HEVC) == AMF_OK) ? 1 : 0; } #else -- 2.40.0