From 1c48915233ffd62f5bfc9ffe660c87b4552aacaf Mon Sep 17 00:00:00 2001 From: Johann Date: Wed, 21 Jun 2017 11:46:58 -0700 Subject: [PATCH] dct tests: align InvAccuracyCheck buffers 'in' is used for the reference fdct. 'coeff' is input to the idct being tested and 'dst[16]' is output Fixes a segfault on unaligned memory access on x86. Change-Id: I3691b1380ed49986897dd89a63ce63a80a0e0962 --- test/dct_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/dct_test.cc b/test/dct_test.cc index 5b049c165..109ccb630 100644 --- a/test/dct_test.cc +++ b/test/dct_test.cc @@ -307,13 +307,13 @@ class TransTestBase { const int count_test_block = 1000; Buffer in = Buffer(size_, size_, 4); ASSERT_TRUE(in.Init()); - Buffer coeff = Buffer(size_, size_, 0); + Buffer coeff = Buffer(size_, size_, 0, 16); ASSERT_TRUE(coeff.Init()); - Buffer dst = Buffer(size_, size_, 0); + Buffer dst = Buffer(size_, size_, 0, 16); ASSERT_TRUE(dst.Init()); Buffer src = Buffer(size_, size_, 0); ASSERT_TRUE(src.Init()); - Buffer dst16 = Buffer(size_, size_, 0); + Buffer dst16 = Buffer(size_, size_, 0, 16); ASSERT_TRUE(dst16.Init()); Buffer src16 = Buffer(size_, size_, 0); ASSERT_TRUE(src16.Init());