From: Steinar H. Gunderson Date: Mon, 10 Jul 2017 11:35:19 +0000 (+0200) Subject: Update the x264 speedcontrol buffer size metric when the buffer changes. X-Git-Tag: 1.6.2~7 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ea0d61e155fd3fd80f8e4dad6f466c06f2b77bb1;hp=868450678563ed2c9fd5240dca704d87371d1478;p=nageru Update the x264 speedcontrol buffer size metric when the buffer changes. --- diff --git a/x264_speed_control.cpp b/x264_speed_control.cpp index 530feb7..08aa9fc 100644 --- a/x264_speed_control.cpp +++ b/x264_speed_control.cpp @@ -299,6 +299,7 @@ void X264SpeedControl::set_buffer_size(int new_buffer_size) buffer_size = new_buffer_size * uspf; cplx_decay = 1 - 1./new_buffer_size; compensation_period = buffer_size/4; + metric_x264_speedcontrol_buffer_size_seconds = buffer_size * 1e-6; } int X264SpeedControl::dither_preset(float f)