diff options
author | Rodeo <[email protected]> | 2013-12-15 17:06:29 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-12-15 17:06:29 +0000 |
commit | d1f37e84a62271ba4f3b95a47281bb4c72854a94 (patch) | |
tree | b5103577befedd3818a2820144c3080ccc0583e4 /libhb/enc_qsv.c | |
parent | c62a0cb6a0822db6fbd3ee999d795f058569c1a2 (diff) |
QSV: don't print BPyramid value when it's not supported by the implementation used, as it's somewhat pointless (would always say off anyway).
This also allows to notice whether b-pyramid is available more quickly when reading the log.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5930 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r-- | libhb/enc_qsv.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 8236e0049..78f7aab87 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -964,9 +964,16 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) videoParam.mfx.TargetUsage, videoParam.AsyncDepth); hb_log("encqsvInit: GopRefDist %"PRIu16" GopPicSize %"PRIu16" NumRefFrame %"PRIu16"", videoParam.mfx.GopRefDist, videoParam.mfx.GopPicSize, videoParam.mfx.NumRefFrame); - hb_log("encqsvInit: BFrames %s BPyramid %s", - pv->bfrm_delay ? "on" : "off", - pv->bfrm_delay && pv->param.gop.b_pyramid ? "on" : "off"); + if (hb_qsv_info->capabilities & HB_QSV_CAP_H264_BPYRAMID) + { + hb_log("encqsvInit: BFrames %s BPyramid %s", + pv->bfrm_delay ? "on" : "off", + pv->bfrm_delay && pv->param.gop.b_pyramid ? "on" : "off"); + } + else + { + hb_log("encqsvInit: BFrames %s", pv->bfrm_delay ? "on" : "off"); + } if (videoParam.mfx.RateControlMethod == MFX_RATECONTROL_CQP) { char qpi[7], qpp[9], qpb[9]; |