diff options
author | Tim Walker <[email protected]> | 2016-03-29 23:22:26 +0200 |
---|---|---|
committer | Tim Walker <[email protected]> | 2016-03-31 01:05:16 +0200 |
commit | f62eab7af77982d8a161d2714d237f3b7bda3cf8 (patch) | |
tree | 1388fe4e13257e8b503260b4f9e29b9205c7dd13 /libhb/encavcodec.c | |
parent | 0de684adbc17b445f93ed8e6f52951b44dc12063 (diff) |
libhb: fix incorrect assumption that video quality is always positive.
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 3f416b244..129921d0b 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -182,7 +182,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) // Now set the things in context that we don't want to allow // the user to override. - if( job->vquality < 0.0 ) + if (job->vquality <= HB_INVALID_VIDEO_QUALITY) { /* Average bitrate */ context->bit_rate = 1000 * job->vbitrate; |