From 29e80bc54f423afefd45881e5e11a45bc002af6c Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 7 Jul 2018 12:19:02 +0100 Subject: VCE: Implement missing compile time availability flag. This should stop it showing up when it's not compiled in. --- libhb/common.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libhb/common.c') diff --git a/libhb/common.c b/libhb/common.c index 5d3a430b6..d10811ecd 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -35,6 +35,10 @@ #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 -- cgit v1.2.3