diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-23 01:35:18 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-23 01:35:18 +0300 |
commit | 9e83ac6114de3d94eb992eff8ed810234069a7b2 (patch) | |
tree | 383cf4e628689a823e98bda2422a0cd191c44a8c /tests/checkasm | |
parent | 9e3135f49e45ec6b26c5b7c3fea481bf85ad64d6 (diff) |
tests/checkasm/h264qpel: Use LOCAL_ALIGNED_16()
Fixes alignment issue and bus errors
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/h264qpel.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/checkasm/h264qpel.c b/tests/checkasm/h264qpel.c index 7579f94a70..ec015a6a52 100644 --- a/tests/checkasm/h264qpel.c +++ b/tests/checkasm/h264qpel.c @@ -22,6 +22,7 @@ #include "checkasm.h" #include "libavcodec/h264qpel.h" #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }; @@ -48,10 +49,10 @@ static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }; void checkasm_check_h264qpel(void) { - DECLARE_ALIGNED(16, uint8_t, buf0)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, buf1)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, dst0)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, dst1)[BUF_SIZE]; + LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]); H264QpelContext h; int op, bit_depth, i, j; |