projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8c25c
)
sad_test: initialize bit_depth_ in all cases
author
James Zern
<jzern@google.com>
Sat, 22 Nov 2014 20:12:59 +0000
(12:12 -0800)
committer
James Zern
<jzern@google.com>
Sat, 22 Nov 2014 20:12:59 +0000
(12:12 -0800)
previously 'bit_depth_', which is later used to calculate 'mask_', would
be left uninitialized in non-high-bitdepth builds
Change-Id: Ia72035f4645baf3bb0f191504f491b934cdf1e0e
test/sad_test.cc
patch
|
blob
|
history
diff --git
a/test/sad_test.cc
b/test/sad_test.cc
index
114f0af
..
eef8c75
100644
(file)
--- a/
test/sad_test.cc
+++ b/
test/sad_test.cc
@@
-140,6
+140,8
@@
class SADTestBase : public ::testing::Test {
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;