]> granicus.if.org Git - handbrake/commitdiff
VCE: Add support for fetching levels for H.264 and H.265
authorsr55 <sr55.hb@outlook.com>
Fri, 8 Jun 2018 22:14:02 +0000 (23:14 +0100)
committersr55 <sr55.hb@outlook.com>
Fri, 8 Jun 2018 22:14:02 +0000 (23:14 +0100)
libhb/common.c

index a552444270ac65eff233ec6f818685be8ba7d810..bb5de65fb74cb59ae6ff80a2760725b97e1dc356 100644 (file)
@@ -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: