summaryrefslogtreecommitdiffstats
path: root/libhb/enc_qsv.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2015-06-27 21:48:25 +0000
committerRodeo <[email protected]>2015-06-27 21:48:25 +0000
commit4571f84097a038415baa35ea358d750718438c39 (patch)
tree2812aac093b4051b1c2e26d5182560130ce6f278 /libhb/enc_qsv.c
parentfacea32e98b42868ebdd72a07eaa33978956f4de (diff)
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
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r--libhb/enc_qsv.c7
1 files changed, 6 insertions, 1 deletions
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);
}
/*