shithub: libvpx

Download patch

ref: 9fb1eec444dd0750eed8edaab551cc746c6e29d4
parent: dd3d08f0c227ebe08b445801eeb38d39cc06f377
parent: 4777112764482e60ad72bf92b9aee0d62f19ed44
author: Jerome Jiang <jianj@google.com>
date: Tue Jun 26 18:53:57 EDT 2018

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

--- 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() {}