From: sr55 Date: Sat, 29 Sep 2018 18:38:05 +0000 (+0100) Subject: VCE: Try to improve the reliability of the VCE hardware detection. X-Git-Tag: 1.2.0~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cbe343c9886cf84a85852a4a359e529cc3075dc;p=handbrake VCE: Try to improve the reliability of the VCE hardware detection. --- 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