summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-06-08 16:33:23 -0400
committerBradley Sepos <[email protected]>2018-06-08 16:34:52 -0400
commit6f139b1aed86379258c9232c24c268d3d0a5c406 (patch)
treee5c3449e23df77bc22450891a10ce83e2ef1d6b1 /libhb/work.c
parentc3220c073d31c6dd0345f8ee37fe84806219975a (diff)
libhb: test: Guard VCE encoders behind USE_VCE.
Fixes #1403.
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c2
1 files changed, 2 insertions, 0 deletions
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 );
}