summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-04-17 10:43:25 -0600
committerJohn Stebbins <[email protected]>2019-04-17 11:25:13 -0600
commit7147389186a86b4c188929fcf4c3b68c5321323b (patch)
tree720410e325aad2be8e3e5b79cf6f90363caea549 /libhb/common.c
parent4f78a721fd33fc828e61f9ce9462b7ba06eccbbb (diff)
vce: use HB_PROJECT_FEATURE_VCE instead of USE_VCE
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 8ddb594ee..b99fc9fa0 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -34,8 +34,7 @@
#if HB_PROJECT_FEATURE_NVENC
#include "nvenc_common.h"
#endif
-
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
#include "vce_common.h"
#endif
@@ -284,7 +283,7 @@ static int hb_video_encoder_is_enabled(int encoder, int disable_hardware)
#endif
switch (encoder){
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_available();
case HB_VCODEC_FFMPEG_VCE_H265:
@@ -1537,7 +1536,7 @@ const char* const* hb_video_encoder_get_profiles(int encoder)
case HB_VCODEC_X265_16BIT:
return hb_h265_profile_names_16bit;
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_profile_names;
case HB_VCODEC_FFMPEG_VCE_H265:
@@ -1571,7 +1570,7 @@ const char* const* hb_video_encoder_get_levels(int encoder)
case HB_VCODEC_FFMPEG_VT_H264:
return hb_h264_level_names;
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_level_names; // Not quite the same as x264
#endif