From 9f59aff35b63325656c69fbebfd39f5a1e0c3122 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 6 Jun 2016 19:05:09 +0200 Subject: [PATCH] Initialize stats buffers in speed control correctly Found by Coverity Scan. --- x264_speed_control.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.2