From dbbaa2f449c894296a097421471399aba0265a50 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 16 Aug 2018 19:35:22 +0100 Subject: [PATCH] VCE: Show only supported H264 / HEVC profiles. --- libhb/common.c | 8 +++++--- libhb/vce_common.h | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libhb/common.c b/libhb/common.c index d10811ecd..ebc24b0ec 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1502,11 +1502,13 @@ const char* const* hb_video_encoder_get_profiles(int encoder) case HB_VCODEC_X265_16BIT: return hb_h265_profile_names_16bit; +#ifdef USE_VCE case HB_VCODEC_FFMPEG_VCE_H264: - return hb_h264_profile_names_8bit; + return hb_h264_profile_names; case HB_VCODEC_FFMPEG_VCE_H265: - return hb_h265_profile_names_8bit; - + return hb_h265_profile_names; +#endif + case HB_VCODEC_FFMPEG_NVENC_H264: case HB_VCODEC_FFMPEG_NVENC_H265: return hb_av_profile_get_names(encoder); diff --git a/libhb/vce_common.h b/libhb/vce_common.h index 93acceaac..3a6949e16 100644 --- a/libhb/vce_common.h +++ b/libhb/vce_common.h @@ -9,3 +9,6 @@ int hb_vce_h264_available(); int hb_vce_h265_available(); + +static const char * const hb_h264_profile_names[] = { "baseline", "main", "high", NULL, }; +static const char * const hb_h265_profile_names[] = { "main", NULL, }; \ No newline at end of file -- 2.40.0