Skip to content

Commit

Permalink
checkasm: Provide enough alignment in the new motion test
Browse files Browse the repository at this point in the history
This fixes the checkasm test in some setups on x86.

Signed-off-by: Martin Storsjö <martin@martin.st>
  • Loading branch information
mstorsjo committed Jun 28, 2022
1 parent 4454142 commit 900424c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/checkasm/motion.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ static void test_motion(const char *name, me_cmp_func test_func)
int i, x, y, d1, d2;
uint8_t *ptr;

LOCAL_ALIGNED_8(uint8_t, img1, [WIDTH * HEIGHT]);
LOCAL_ALIGNED_8(uint8_t, img2, [WIDTH * HEIGHT]);
LOCAL_ALIGNED_16(uint8_t, img1, [WIDTH * HEIGHT]);
LOCAL_ALIGNED_16(uint8_t, img2, [WIDTH * HEIGHT]);

declare_func_emms(AV_CPU_FLAG_MMX, int, struct MpegEncContext *c,
uint8_t *blk1 /* align width (8 or 16) */,
Expand Down

0 comments on commit 900424c

Please sign in to comment.