summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-08-16 19:35:22 +0100
committersr55 <[email protected]>2018-08-16 19:35:22 +0100
commitdbbaa2f449c894296a097421471399aba0265a50 (patch)
tree032bf8c245a1d41a71b16c3c92655bfeaa07ca83 /libhb
parent1525ccad8037d9fdfa80cda8701f519da6830d00 (diff)
VCE: Show only supported H264 / HEVC profiles.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.c8
-rw-r--r--libhb/vce_common.h3
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