From: sr55 Date: Thu, 16 Aug 2018 18:35:22 +0000 (+0100) Subject: VCE: Show only supported H264 / HEVC profiles. X-Git-Tag: 1.2.0~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbbaa2f449c894296a097421471399aba0265a50;p=handbrake VCE: Show only supported H264 / HEVC profiles. --- 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