Revert "Revert "add memset to allocated buffers""
This reverts commit 21de60c040430ee83a5df372ada26112dfb09c16.
BUG=aomedia:1444
Change-Id: I73700625b577141c3fc1e8fb6f3eee7f7a17e524
diff --git a/test/cfl_test.cc b/test/cfl_test.cc
index 4a778cf..42e21e3 100644
--- a/test/cfl_test.cc
+++ b/test/cfl_test.cc
@@ -178,6 +178,10 @@
aom_memalign(32, sizeof(uint16_t) * CFL_BUF_SQUARE));
sub_luma_pels = reinterpret_cast<int16_t *>(
aom_memalign(32, sizeof(int16_t) * CFL_BUF_SQUARE));
+ memset(chroma_pels_ref, 0, sizeof(int16_t) * CFL_BUF_SQUARE);
+ memset(sub_luma_pels_ref, 0, sizeof(int16_t) * CFL_BUF_SQUARE);
+ memset(chroma_pels, 0, sizeof(int16_t) * CFL_BUF_SQUARE);
+ memset(sub_luma_pels, 0, sizeof(int16_t) * CFL_BUF_SQUARE);
}
virtual void TearDown() {