summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index ed76a1f70..cc45cef79 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -269,25 +269,16 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
}
- if( job->vquality > 0.0 && job->vquality < 1.0 )
+ if( job->vquality >= 0 )
{
- /*Constant RF*/
- param.rc.i_rc_method = X264_RC_CRF;
- param.rc.f_rf_constant = 51 - job->vquality * 51;
- hb_log( "encx264: Encoding at constant RF %f", param.rc.f_rf_constant );
- }
- else if( job->vquality == 0 || job->vquality >= 1.0 )
- {
- /* Use the vquality as a raw RF or QP
- instead of treating it like a percentage. */
- /*Constant RF*/
+ /* Constant RF */
param.rc.i_rc_method = X264_RC_CRF;
param.rc.f_rf_constant = job->vquality;
hb_log( "encx264: Encoding at constant RF %f", param.rc.f_rf_constant );
}
else
{
- /* Rate control */
+ /* Average bitrate */
param.rc.i_rc_method = X264_RC_ABR;
param.rc.i_bitrate = job->vbitrate;
switch( job->pass )