From 291fc6bee201e86304ecaa761a169b94d6afb468 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 8 Jun 2018 23:14:02 +0100 Subject: [PATCH] VCE: Add support for fetching levels for H.264 and H.265 --- libhb/common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libhb/common.c b/libhb/common.c index a55244427..bb5de65fb 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1499,6 +1499,18 @@ const char* const* hb_video_encoder_get_levels(int encoder) } #endif +#ifdef USE_VCE + if (encoder & HB_VCODEC_FFMPEG_VCE_H264) + { + return hb_h264_level_names; + } + + if (encoder & HB_VCODEC_FFMPEG_VCE_H265) + { + return hb_h265_level_names; + } +#endif + switch (encoder) { case HB_VCODEC_X264_8BIT: -- 2.40.0