diff options
author | James Zern <jzern@google.com> | 2017-02-18 13:24:32 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2017-02-18 13:30:28 -0800 |
commit | bf6fcebfedb6315cfbcea7891bbe3e3b6b9ffb22 (patch) | |
tree | 7b161a5512c0f967f57bb3a4e8a78a6ae613645e /test/vp8_fdct4x4_test.cc | |
parent | 52b3e1a63314a1ed4d526f67cbeb0c5bf21667ec (diff) | |
download | libvpx-bf6fcebfedb6315cfbcea7891bbe3e3b6b9ffb22.tar libvpx-bf6fcebfedb6315cfbcea7891bbe3e3b6b9ffb22.tar.gz libvpx-bf6fcebfedb6315cfbcea7891bbe3e3b6b9ffb22.tar.bz2 libvpx-bf6fcebfedb6315cfbcea7891bbe3e3b6b9ffb22.zip |
vp8_fdct4x4_test: align input and output buffers
fixes segfault in 32-bit builds
Change-Id: I5b3cc5a335cb236a6ec4cb11fa8feb54ae0182c7
Diffstat (limited to 'test/vp8_fdct4x4_test.cc')
-rw-r--r-- | test/vp8_fdct4x4_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/vp8_fdct4x4_test.cc b/test/vp8_fdct4x4_test.cc index b58cb2d40..4b3282da5 100644 --- a/test/vp8_fdct4x4_test.cc +++ b/test/vp8_fdct4x4_test.cc @@ -21,6 +21,7 @@ #include "./vp8_rtcd.h" #include "test/acm_random.h" #include "vpx/vpx_integer.h" +#include "vpx_ports/mem.h" namespace { @@ -154,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) { - int16_t test_input_block[16]; + 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_output_block[16]; // Initialize a test block with input range [-255, 255]. for (int j = 0; j < 16; ++j) { |