From 4571f84097a038415baa35ea358d750718438c39 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sat, 27 Jun 2015 21:48:25 +0000 Subject: QSV: cleanup LookAheadDepth handling. When possible, allow a value of 100 for users that might want it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7323 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/enc_qsv.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libhb/enc_qsv.c') diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 91405eaea..fdb6a91f6 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -908,7 +908,12 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) // encode-only is a bit less sensitive to memory issues pv->param.videoParam->mfx.GopRefDist = FFMIN(pv->param.videoParam->mfx.GopRefDist, 16); pv->param.codingOption2.LookAheadDepth = FFMIN(pv->param.codingOption2.LookAheadDepth, - pv->param.rc.lookahead ? 60 : 0); + pv->param.rc.lookahead ? 100 : 0); + } + if (pv->param.rc.lookahead) + { + // LookAheadDepth 10 will cause a hang with some driver versions + pv->param.codingOption2.LookAheadDepth = FFMAX(pv->param.codingOption2.LookAheadDepth, 11); } /* -- cgit v1.2.3