]> git.sesse.net Git - nageru/commitdiff
Update the x264 speedcontrol buffer size metric when the buffer changes.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Jul 2017 11:35:19 +0000 (13:35 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Jul 2017 11:35:22 +0000 (13:35 +0200)
x264_speed_control.cpp

index 530feb74b41f375847b6cc28fa4cc571805f2880..08aa9fcd3bf87039664e6b5a82b7fde20d1a6c6c 100644 (file)
@@ -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)