diff options
author | sr55 <[email protected]> | 2018-08-16 19:44:38 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-08-16 19:44:38 +0100 |
commit | 29f1a1ee0f951ee6c9e295500a93b05304c562dd (patch) | |
tree | 41fee0fecdea4ca21dd9b358a8dcab5f3802c921 /libhb/common.c | |
parent | dbbaa2f449c894296a097421471399aba0265a50 (diff) |
Fixing available Levels for VCE and other H265 encoders.
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libhb/common.c b/libhb/common.c index ebc24b0ec..e1257c930 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1504,9 +1504,9 @@ const char* const* hb_video_encoder_get_profiles(int encoder) #ifdef USE_VCE case HB_VCODEC_FFMPEG_VCE_H264: - return hb_h264_profile_names; + return hb_vce_h264_profile_names; case HB_VCODEC_FFMPEG_VCE_H265: - return hb_h265_profile_names; + return hb_vce_h265_profile_names; #endif case HB_VCODEC_FFMPEG_NVENC_H264: @@ -1531,17 +1531,20 @@ const char* const* hb_video_encoder_get_levels(int encoder) case HB_VCODEC_X264_8BIT: case HB_VCODEC_X264_10BIT: case HB_VCODEC_FFMPEG_NVENC_H264: - case HB_VCODEC_FFMPEG_VCE_H264: return hb_h264_level_names; - + +#ifdef USE_VCE + case HB_VCODEC_FFMPEG_VCE_H264: + return hb_vce_h264_level_names; // Not quite the same as x264 +#endif + case HB_VCODEC_X265_8BIT: case HB_VCODEC_X265_10BIT: case HB_VCODEC_X265_12BIT: case HB_VCODEC_X265_16BIT: case HB_VCODEC_FFMPEG_NVENC_H265: case HB_VCODEC_FFMPEG_VCE_H265: - return hb_h264_level_names; - + return hb_h265_level_names; default: return NULL; |