diff options
author | Rodeo <[email protected]> | 2015-02-01 01:25:29 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2015-02-01 01:25:29 +0000 |
commit | 4dc02102e5e95b772dcbeb6ff927703c89d91f13 (patch) | |
tree | d730acca36a5dab1b6448335cce7c6891ff57606 /libhb | |
parent | 0ed67774efe54e9036ed56738df66b90fd3a7841 (diff) |
QSV: improve ICQ and LA handling
ICQ is incompatible with ABR encoding; LA is incompatible with CQP.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6848 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/enc_qsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 5f3b9310a..fbfd8154e 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -738,7 +738,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) } else { - pv->param.rc.icq = !!pv->param.rc.icq; + pv->param.rc.icq = pv->param.rc.icq && job->vquality >= 0; } // sanitize lookahead @@ -757,7 +757,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) } else { - pv->param.rc.lookahead = !!pv->param.rc.lookahead; + pv->param.rc.lookahead = pv->param.rc.lookahead && (pv->param.rc.icq || job->vquality < 0); } // set VBV here (this will be overridden for CQP and ignored for LA) |