summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-03-29 22:20:30 +0200
committerTim Walker <[email protected]>2016-03-29 22:20:30 +0200
commitcc618a4e2f435690f420a77c81ba8660f8fa4dc6 (patch)
tree5c8ba3511d67beca9ee1fd8371f62380c79cf282 /libhb
parent113e2a55a49dbac93abb22a7fc77987d589304b3 (diff)
libhb: fix x265 encoding with CRF == 0.0
We were using ABR at 0.0 Kbps instead.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/encx265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 8928a43e2..f330bb652 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -249,7 +249,7 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
goto fail;
}
- if (job->vquality > 0)
+ if (job->vquality >= 0.)
{
param->rc.rateControlMode = X265_RC_CRF;
param->rc.rfConstant = job->vquality;