diff options
author | Jerome Jiang <jianj@google.com> | 2018-06-26 15:03:11 -0700 |
---|---|---|
committer | Jerome Jiang <jianj@google.com> | 2018-06-26 15:03:11 -0700 |
commit | 4777112764482e60ad72bf92b9aee0d62f19ed44 (patch) | |
tree | 73a556d35538f9976cb6e27204c8cab96ac7a968 | |
parent | a5d499e16570d00d5e1348b1c7977ced7af3670f (diff) | |
download | libvpx-4777112764482e60ad72bf92b9aee0d62f19ed44.tar libvpx-4777112764482e60ad72bf92b9aee0d62f19ed44.tar.gz libvpx-4777112764482e60ad72bf92b9aee0d62f19ed44.tar.bz2 libvpx-4777112764482e60ad72bf92b9aee0d62f19ed44.zip |
vp9 svc: Fix uninitialized data members in frame sync tests.
BUG=webm:1542
Change-Id: If3e0b32a6832740b9af2f5c2d9418a6664297f57
-rw-r--r-- | test/svc_test.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/svc_test.h b/test/svc_test.h index a515ab75d..7dfd27c97 100644 --- a/test/svc_test.h +++ b/test/svc_test.h @@ -25,7 +25,15 @@ namespace svc_test { 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() {} |