diff options
author | Rodeo <[email protected]> | 2013-09-15 22:31:50 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-09-15 22:31:50 +0000 |
commit | 5d487e5c023e9c5c8252b0449e007248bea0e8a9 (patch) | |
tree | f81512169b457a707cfac7da42d0eb9838c59808 | |
parent | b112b9861556476f4fcb8650e044f9eba4f15ac4 (diff) |
QSV: adjust trellis logging when B- or P-frames are disabled.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5784 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/enc_qsv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index ee52b7e9b..b212b05f9 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -991,9 +991,11 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) break; default: hb_log("encqsvInit: Trellis on (%s%s%s)", - option2->Trellis & MFX_TRELLIS_I ? "I" : "", - option2->Trellis & MFX_TRELLIS_P ? "P" : "", - option2->Trellis & MFX_TRELLIS_B ? "B" : ""); + (option2->Trellis & MFX_TRELLIS_I) ? "I" : "", + (option2->Trellis & MFX_TRELLIS_P) && + (videoParam.mfx.GopPicSize > 1) ? "P" : "", + (option2->Trellis & MFX_TRELLIS_B) && + (videoParam.mfx.GopRefDist > 1) ? "B" : ""); break; } } |