Skip to content

Commit

Permalink
VCE: Show only supported H264 / HEVC profiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr55 committed Aug 16, 2018
1 parent 1525cca commit dbbaa2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libhb/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions libhb/vce_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, };

0 comments on commit dbbaa2f

Please sign in to comment.