summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.c4
-rw-r--r--libhb/module.defs4
-rw-r--r--libhb/work.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 9c1c42f32..a55244427 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -267,9 +267,13 @@ static int hb_video_encoder_is_enabled(int encoder)
case HB_VCODEC_FFMPEG_MPEG2:
case HB_VCODEC_FFMPEG_VP8:
case HB_VCODEC_FFMPEG_VP9:
+ return 1;
+
+#ifdef USE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
case HB_VCODEC_FFMPEG_VCE_H265:
return 1;
+#endif
#ifdef USE_X265
case HB_VCODEC_X265_8BIT:
diff --git a/libhb/module.defs b/libhb/module.defs
index 99e2b4cfa..6afb6f403 100644
--- a/libhb/module.defs
+++ b/libhb/module.defs
@@ -82,6 +82,10 @@ ifeq (1,$(FEATURE.qsv))
LIBHB.GCC.D += USE_QSV HAVE_THREADS=1
endif
+ifeq (1,$(FEATURE.vce))
+ LIBHB.GCC.D += USE_VCE
+endif
+
ifeq (1,$(FEATURE.x265))
LIBHB.GCC.D += USE_X265
endif
diff --git a/libhb/work.c b/libhb/work.c
index 19d78b2e4..1400fee1f 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -243,6 +243,7 @@ hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec)
w = hb_get_work(h, WORK_ENCX265);
break;
#endif
+#ifdef USE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
w = hb_get_work(h, WORK_ENCAVCODEC);
w->codec_param = AV_CODEC_ID_H264;
@@ -251,6 +252,7 @@ hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec)
w = hb_get_work(h, WORK_ENCAVCODEC);
w->codec_param = AV_CODEC_ID_HEVC;
break;
+#endif
default:
hb_error("Unknown video codec (0x%x)", vcodec );
}