summaryrefslogtreecommitdiffstats
path: root/libhb/enc_qsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r--libhb/enc_qsv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 48e4c845e..15d7b6bd5 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -888,7 +888,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job)
}
else
{
- pv->param.rc.icq = pv->param.rc.icq && job->vquality >= 0;
+ pv->param.rc.icq = pv->param.rc.icq && job->vquality > HB_INVALID_VIDEO_QUALITY;
}
// sanitize lookahead
@@ -907,7 +907,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job)
}
else
{
- pv->param.rc.lookahead = pv->param.rc.lookahead && (pv->param.rc.icq || job->vquality < 0);
+ pv->param.rc.lookahead = pv->param.rc.lookahead && (pv->param.rc.icq || job->vquality <= HB_INVALID_VIDEO_QUALITY);
}
// set VBV here (this will be overridden for CQP and ignored for LA)
@@ -932,7 +932,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job)
}
// set rate control paremeters
- if (job->vquality >= 0)
+ if (job->vquality > HB_INVALID_VIDEO_QUALITY)
{
if (pv->param.rc.icq)
{