aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-23 00:35:18 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-23 00:44:02 +0200
commitf467fc02b475cd45b68aa5fb5f7c78286110ba86 (patch)
treef6948c03add1d2163c0bc225ed125b3b69605b2e
parent9e83ac6114de3d94eb992eff8ed810234069a7b2 (diff)
downloadffmpeg-f467fc02b475cd45b68aa5fb5f7c78286110ba86.tar.gz
tests/checkasm/h264pred: Use LOCAL_ALIGNED_16()
Fixes alignment issue and bus errors Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tests/checkasm/h264pred.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkasm/h264pred.c b/tests/checkasm/h264pred.c
index 633e101c5f..5e9a7c1e17 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;