diff options
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r-- | libhb/enc_qsv.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index ca2158a67..e4d0dc04b 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -1464,13 +1464,6 @@ int encqsvWork( hb_work_object_t * w, hb_buffer_t ** buf_in, ((task->bs->TimeStamp - task->bs->DecodeTimeStamp + (duration / 2)) / duration)); - // check whether b_pyramid is respected, log if needed - if ((pv->param.gop.b_pyramid != 0 && pv->bfrm_delay <= 1) || - (pv->param.gop.b_pyramid == 0 && pv->bfrm_delay >= 2)) - { - hb_log( "encqsvWork: b_pyramid %d not respected (delay: %d)", - pv->param.gop.b_pyramid, pv->bfrm_delay); - } } if (!pv->bfrm_workaround) @@ -1502,6 +1495,15 @@ int encqsvWork( hb_work_object_t * w, hb_buffer_t ** buf_in, } } + // check whether B-pyramid is used even though it's disabled + if ((pv->param.gop.b_pyramid == 0) && + (task->bs->FrameType & MFX_FRAMETYPE_B) && + (task->bs->FrameType & MFX_FRAMETYPE_REF)) + { + hb_log("encqsvWork: BPyramid off not respected (delay: %d)", + pv->bfrm_delay); + } + // check for PTS < DTS if (buf->s.start < buf->s.renderOffset) { |