summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/encavcodec.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index c53d73994..5e5c0f900 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -653,9 +653,19 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
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)