shithub: libvpx

Download patch

ref: 4777112764482e60ad72bf92b9aee0d62f19ed44
parent: a5d499e16570d00d5e1348b1c7977ced7af3670f
author: Jerome Jiang <jianj@google.com>
date: Tue Jun 26 11:03:11 EDT 2018

vp9 svc: Fix uninitialized data members in frame sync tests.

BUG=webm:1542

Change-Id: If3e0b32a6832740b9af2f5c2d9418a6664297f57

--- a/test/svc_test.h
+++ b/test/svc_test.h
@@ -25,7 +25,15 @@
 class OnePassCbrSvc : public ::libvpx_test::EncoderTest {
  public:
   explicit OnePassCbrSvc(const ::libvpx_test::CodecFactory *codec)
-      : EncoderTest(codec) {}
+      : EncoderTest(codec), base_speed_setting_(0), speed_setting_(0),
+        superframe_count_(0), temporal_layer_id_(0), number_temporal_layers_(0),
+        number_spatial_layers_(0) {
+    memset(&svc_params_, 0, sizeof(svc_params_));
+    memset(bits_in_buffer_model_, 0,
+           sizeof(bits_in_buffer_model_[0]) * VPX_MAX_LAYERS);
+    memset(layer_target_avg_bandwidth_, 0,
+           sizeof(layer_target_avg_bandwidth_[0]) * VPX_MAX_LAYERS);
+  }
 
  protected:
   virtual ~OnePassCbrSvc() {}