mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tests/checkasm/sw_scale: Fix alignment for movdqa
SSE3 instruction movdqa in ff_yuv2yuvX_sse3() expects a 16-byte aligned address for a memory address, or else a segfault is generated. The src_pixels buffer below was not aligned to 16 bytes on the stack necessarily, so we got segfaults during fate-checkasm-sw_scale. Therefore 16-byte align all of these local variables, aligning them too much shouldn't hurt.
This commit is contained in:
parent
0aa5dd084b
commit
b7f6a933fa
@ -75,11 +75,11 @@ static void check_yuv2yuvX(void)
|
||||
int dstW, const uint8_t *dither, int offset);
|
||||
|
||||
const int16_t **src;
|
||||
LOCAL_ALIGNED_8(int16_t, src_pixels, [LARGEST_FILTER * LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_8(int16_t, filter_coeff, [LARGEST_FILTER]);
|
||||
LOCAL_ALIGNED_8(uint8_t, dst0, [LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_8(uint8_t, dst1, [LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_8(uint8_t, dither, [LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_16(int16_t, src_pixels, [LARGEST_FILTER * LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_16(int16_t, filter_coeff, [LARGEST_FILTER]);
|
||||
LOCAL_ALIGNED_16(uint8_t, dst0, [LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_16(uint8_t, dst1, [LARGEST_INPUT_SIZE]);
|
||||
LOCAL_ALIGNED_16(uint8_t, dither, [LARGEST_INPUT_SIZE]);
|
||||
union VFilterData{
|
||||
const int16_t *src;
|
||||
uint16_t coeff[8];
|
||||
|
Loading…
Reference in New Issue
Block a user