The VT h.265 encoder appears to enable b-pyramid, but doesn't expose any
method to modify the setting or query for its value. So we'll just
assume it's always on whenever there are b-frames.
Fixes https://github.com/HandBrake/HandBrake/issues/1689
pv->context = context;
job->areBframes = 0;
- if ( context->has_b_frames )
+ if (context->has_b_frames > 0)
{
- job->areBframes = 1;
+ if (job->vcodec == HB_VCODEC_FFMPEG_VT_H265)
+ {
+ // VT appears to enable b-pyramid by default and there
+ // is no documented way of modifying this behaviour or
+ // querying if it is enabled.
+ job->areBframes = 2;
+ }
+ else
+ {
+ job->areBframes = context->has_b_frames;
+ }
}
if (context->extradata != NULL)