From: sr55 Date: Fri, 8 Jun 2018 22:14:02 +0000 (+0100) Subject: VCE: Add support for fetching levels for H.264 and H.265 X-Git-Tag: 1.2.0~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=291fc6bee201e86304ecaa761a169b94d6afb468;p=handbrake VCE: Add support for fetching levels for H.264 and H.265 --- 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: