]> granicus.if.org Git - libvpx/commitdiff
convolve_test: Add missing init of HBD buffers
authorJames Zern <jzern@google.com>
Sat, 12 Jan 2019 00:36:45 +0000 (16:36 -0800)
committerJames Zern <jzern@google.com>
Sat, 12 Jan 2019 00:36:45 +0000 (16:36 -0800)
this resolves some msan errors.
the same change was done in libaom:
5ab58722c Add missing initializations of HBD buffers

Change-Id: I8882af45b95c90ba43bf138c7d305a6c3b99e61c

test/convolve_test.cc

index 02cc7ff5c62cbd3edd7eb353013ec58165ae105e..cef602eec677238f9c89dd5756c9974c6a4d0a4c 100644 (file)
@@ -416,8 +416,14 @@ class ConvolveTest : public ::testing::TestWithParam<ConvolveParam> {
     for (int i = 0; i < kOutputBufferSize; ++i) {
       if (IsIndexInBorder(i)) {
         output_[i] = 255;
+#if CONFIG_VP9_HIGHBITDEPTH
+        output16_[i] = mask_;
+#endif
       } else {
         output_[i] = 0;
+#if CONFIG_VP9_HIGHBITDEPTH
+        output16_[i] = 0;
+#endif
       }
     }