]> git.sesse.net Git - nageru/commitdiff
Initialize stats buffers in speed control correctly
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 6 Jun 2016 17:05:09 +0000 (19:05 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 6 Jun 2016 17:05:09 +0000 (19:05 +0200)
Found by Coverity Scan.

x264_speed_control.cpp

index aae7a18eff838e911e915d92424a30e9830641e2..c6add3e9403f2e8334f28a19bcb80e57387071fc 100644 (file)
@@ -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()