ref: afb1114d538cb0d5aa6e6949d0c517e984961f9d
parent: 2b9d94189c22a7c96d50d3b6e62e1be30fd09719
author: Scott LaVarnway <[email protected]>
date: Tue Jun 26 13:06:42 EDT 2018
BUG FIX: Initialize AverageTestBase members bit_depth_ was not initialized (used in FillRandom) and caused valgrind errors. BUG=webm:1542 Change-Id: I09a9acd54de0dfa4f9006304f45eb20883c9908c
--- a/test/avg_test.cc
+++ b/test/avg_test.cc
@@ -33,7 +33,9 @@
template <typename Pixel>
class AverageTestBase : public ::testing::Test {
public:
- AverageTestBase(int width, int height) : width_(width), height_(height) {}
+ AverageTestBase(int width, int height)
+ : width_(width), height_(height), source_data_(NULL), source_stride_(0),
+ bit_depth_(8) {}
virtual void TearDown() {
vpx_free(source_data_);