]> granicus.if.org Git - handbrake/commitdiff
VCE: Try to improve the reliability of the VCE hardware detection.
authorsr55 <sr55.hb@outlook.com>
Sat, 29 Sep 2018 18:38:05 +0000 (19:38 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 29 Sep 2018 18:38:05 +0000 (19:38 +0100)
libhb/vce_common.c

index 21b4bb596114069d921675bbe50629476bad1c81..a2a89d8666b7c3075aff3822ae42b61893ecaa78 100644 (file)
@@ -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