diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-25 00:46:21 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-07-26 10:36:22 +0300 |
commit | 4d0d55cd623bcd504867f948849380f6b4060b4d (patch) | |
tree | ebcd340204e661912660037d20601f7a33b40be8 /tests/checkasm/h264pred.c | |
parent | 41d47ea85fb4ad9cfb5c2dc808a46bc1d57f3986 (diff) |
checkasm: Use LOCAL_ALIGNED
Fixes alignment issues and bus errors.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/checkasm/h264pred.c')
-rw-r--r-- | tests/checkasm/h264pred.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkasm/h264pred.c b/tests/checkasm/h264pred.c index 40e949ab1d..08f23e61b2 100644 --- a/tests/checkasm/h264pred.c +++ b/tests/checkasm/h264pred.c @@ -23,6 +23,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/h264pred.h" #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" static const int codec_ids[4] = { AV_CODEC_ID_H264, AV_CODEC_ID_VP8, AV_CODEC_ID_RV40, AV_CODEC_ID_SVQ3 }; @@ -232,8 +233,8 @@ void checkasm_check_h264pred(void) { check_pred8x8l, "pred8x8l" }, }; - DECLARE_ALIGNED(16, uint8_t, buf0)[BUF_SIZE]; - DECLARE_ALIGNED(16, uint8_t, buf1)[BUF_SIZE]; + LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]); H264PredContext h; int test, codec, chroma_format, bit_depth; |