From 5ab58722c60709ab51af415f8cbde8a56fbbf807 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 11 May 2017 09:39:31 -0700 Subject: [PATCH] Add missing initializations of HBD buffers BUG=aomedia:530 Change-Id: I6889a9b7ba05785ea6d4c684e0e12dcc85fdca7c --- test/convolve_test.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/convolve_test.cc b/test/convolve_test.cc index d0f14c147..a1fb2087d 100644 --- a/test/convolve_test.cc +++ b/test/convolve_test.cc @@ -368,10 +368,17 @@ class ConvolveTest : public ::testing::TestWithParam { #endif /* Set up guard blocks for an inner block centered in the outer block */ for (int i = 0; i < kOutputBufferSize; ++i) { - if (IsIndexInBorder(i)) + if (IsIndexInBorder(i)) { output_[i] = 255; - else +#if CONFIG_HIGHBITDEPTH + output16_[i] = mask_; +#endif + } else { output_[i] = 0; +#if CONFIG_HIGHBITDEPTH + output16_[i] = 0; +#endif + } } ::libaom_test::ACMRandom prng;