summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.c12
1 files changed, 12 insertions, 0 deletions
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: