From: Steinar H. Gunderson Date: Mon, 6 Jun 2016 17:05:09 +0000 (+0200) Subject: Initialize stats buffers in speed control correctly X-Git-Tag: 1.3.0~8 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=9f59aff35b63325656c69fbebfd39f5a1e0c3122 Initialize stats buffers in speed control correctly Found by Coverity Scan. --- diff --git a/x264_speed_control.cpp b/x264_speed_control.cpp index aae7a18..c6add3e 100644 --- a/x264_speed_control.cpp +++ b/x264_speed_control.cpp @@ -26,6 +26,8 @@ X264SpeedControl::X264SpeedControl(x264_t *x264, float f_speed, int i_buffer_siz cplx_den = .1; stat.min_buffer = buffer_size; stat.max_buffer = 0; + stat.avg_preset = 0.0; + stat.den = 0; } X264SpeedControl::~X264SpeedControl()