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/bswapdsp.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/bswapdsp.c')
-rw-r--r-- | tests/checkasm/bswapdsp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/checkasm/bswapdsp.c b/tests/checkasm/bswapdsp.c index 387102931e..748a886ec9 100644 --- a/tests/checkasm/bswapdsp.c +++ b/tests/checkasm/bswapdsp.c @@ -22,6 +22,7 @@ #include "checkasm.h" #include "libavcodec/bswapdsp.h" #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #define BUF_SIZE 512 @@ -55,10 +56,10 @@ void checkasm_check_bswapdsp(void) { - DECLARE_ALIGNED(16, uint8_t, src0)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, src1)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, dst0)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, dst1)[BUF_SIZE]; + LOCAL_ALIGNED_16(uint8_t, src0, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, src1, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]); BswapDSPContext h; ff_bswapdsp_init(&h); |