From dfb994ee3f02ee38fbb3d90ac016d18ce9382845 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 24 Sep 2013 23:16:50 +0000 Subject: QSV: fix a hang with lookahead RC and some graphics drivers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5809 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/enc_qsv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libhb') diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index ae3e9bf90..073e18423 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -685,6 +685,9 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) } pv->param.videoParam->mfx.GopPicSize = pv->param.gop.gop_pic_size; + // LookAheadDepth 10 will cause a hang with some driver versions + pv->param.codingOption2.LookAheadDepth = FFMAX(pv->param.codingOption2.LookAheadDepth, 11); + // sanitize some settings that affect memory consumption if (!pv->is_sys_mem) { -- cgit v1.2.3