diff options
author | sr55 <[email protected]> | 2018-09-29 19:38:05 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-09-29 19:38:05 +0100 |
commit | 9cbe343c9886cf84a85852a4a359e529cc3075dc (patch) | |
tree | f312468adcf9fe0f8bf2c3ab545784cc0252054f /libhb | |
parent | 77fa0c755330a25202203b3d4ad0974d141ce1cb (diff) |
VCE: Try to improve the reliability of the VCE hardware detection.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/vce_common.c | 7 |
1 files 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 |