From: sr55 Date: Sat, 7 Jul 2018 11:19:02 +0000 (+0100) Subject: VCE: Implement missing compile time availability flag. This should stop it showing... X-Git-Tag: 1.2.0~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29e80bc54f423afefd45881e5e11a45bc002af6c;p=handbrake VCE: Implement missing compile time availability flag. This should stop it showing up when it's not compiled in. --- 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