]> granicus.if.org Git - handbrake/commitdiff
VCE: Implement missing compile time availability flag. This should stop it showing...
authorsr55 <sr55.hb@outlook.com>
Sat, 7 Jul 2018 11:19:02 +0000 (12:19 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 7 Jul 2018 11:19:02 +0000 (12:19 +0100)
libhb/common.c

index 5d3a430b602891e52616b9de1939de47d44c6e0a..d10811ecd8da4b8a4f17ec6ce0774d4840f2aaba 100644 (file)
 #include "nvenc_common.h"
 #endif
 
+#ifdef USE_VCE
+#include "vce_common.h"
+#endif
+
 static int mixdown_get_opus_coupled_stream_count(int mixdown);
 
 /**********************************************************************
@@ -277,8 +281,9 @@ static int hb_video_encoder_is_enabled(int encoder)
 
 #ifdef USE_VCE
         case HB_VCODEC_FFMPEG_VCE_H264:
+                       return hb_vce_h264_available();
         case HB_VCODEC_FFMPEG_VCE_H265:
-            return 1;
+            return hb_vce_h265_available();
 #endif
 
 #ifdef USE_NVENC