diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-24 23:46:21 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-07-26 10:36:22 +0300 |
commit | 4d0d55cd623bcd504867f948849380f6b4060b4d (patch) | |
tree | ebcd340204e661912660037d20601f7a33b40be8 /tests/checkasm/h264qpel.c | |
parent | 41d47ea85fb4ad9cfb5c2dc808a46bc1d57f3986 (diff) | |
download | ffmpeg-4d0d55cd623bcd504867f948849380f6b4060b4d.tar.gz |
checkasm: Use LOCAL_ALIGNED
Fixes alignment issues and bus errors.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/checkasm/h264qpel.c')
-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 01b97ae005..a67bbb401b 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; |