summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohann Koenig <johannkoenig@google.com>2017-02-23 07:41:20 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-23 07:41:21 +0000
commit57e987576f526da2d384377d7bbc866ec5b098e6 (patch)
tree038f7de497f365afe7ef17ce42f6515d6eeca888 /test
parent1d12a125e7a1925e9f1e69cca818ba3458295f98 (diff)
parent672100a84e11a4ce61edcfa080f994d887a5d8b3 (diff)
downloadlibvpx-57e987576f526da2d384377d7bbc866ec5b098e6.tar
libvpx-57e987576f526da2d384377d7bbc866ec5b098e6.tar.gz
libvpx-57e987576f526da2d384377d7bbc866ec5b098e6.tar.bz2
libvpx-57e987576f526da2d384377d7bbc866ec5b098e6.zip
Merge "vp8_fdct4x4 test: fix segfault again"
Diffstat (limited to 'test')
-rw-r--r--test/vp8_fdct4x4_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vp8_fdct4x4_test.cc b/test/vp8_fdct4x4_test.cc
index 4b3282da5..9f69ae164 100644
--- a/test/vp8_fdct4x4_test.cc
+++ b/test/vp8_fdct4x4_test.cc
@@ -86,7 +86,7 @@ class FdctTest : public ::testing::TestWithParam<FdctFunc> {
TEST_P(FdctTest, SignBiasCheck) {
int16_t test_input_block[16];
- int16_t test_output_block[16];
+ DECLARE_ALIGNED(16, int16_t, test_output_block[16]);
const int pitch = 8;
int count_sign_block[16][2];
const int count_test_block = 1000000;
@@ -155,9 +155,9 @@ TEST_P(FdctTest, RoundTripErrorCheck) {
double total_error = 0;
const int count_test_block = 1000000;
for (int i = 0; i < count_test_block; ++i) {
- DECLARE_ALIGNED(16, int16_t, test_input_block[16]);
- DECLARE_ALIGNED(16, int16_t, test_output_block[16]);
- int16_t test_temp_block[16];
+ int16_t test_input_block[16];
+ int16_t test_output_block[16];
+ DECLARE_ALIGNED(16, int16_t, test_temp_block[16]);
// Initialize a test block with input range [-255, 255].
for (int j = 0; j < 16; ++j) {