ref: 65d7fa71699a8da15825cbe743bc755106c87dfa
parent: ec8c25ca2a4b959ff09a3859ab559e84e9452017
author: James Zern <jzern@google.com>
date: Sat Nov 22 07:12:59 EST 2014
sad_test: initialize bit_depth_ in all cases previously 'bit_depth_', which is later used to calculate 'mask_', would be left uninitialized in non-high-bitdepth builds Change-Id: Ia72035f4645baf3bb0f191504f491b934cdf1e0e
--- a/test/sad_test.cc
+++ b/test/sad_test.cc
@@ -140,6 +140,8 @@
reference_data_ = CONVERT_TO_BYTEPTR(reference_data16_);
second_pred_ = CONVERT_TO_BYTEPTR(second_pred16_);
}
+#else
+ bit_depth_ = VPX_BITS_8;
#endif
mask_ = (1 << bit_depth_) - 1;
source_stride_ = (width_ + 31) & ~31;