diff --git a/tests/checkasm/vp8dsp.c b/tests/checkasm/vp8dsp.c index 9733ff7c8de4ccaaa7b5502e9dd0403ad0ea35e6..0260d631bac1465eb9173d8b6d4d9a1437fd9837 100644 --- a/tests/checkasm/vp8dsp.c +++ b/tests/checkasm/vp8dsp.c @@ -247,7 +247,7 @@ static void check_luma_dc_wht(void) } #define SRC_BUF_STRIDE 32 -#define SRC_BUF_SIZE ((size + 5) * SRC_BUF_STRIDE) +#define SRC_BUF_SIZE (((size << (size < 16)) + 5) * SRC_BUF_STRIDE) // The mc subpixel interpolation filter needs the 2 previous pixels in either // direction, the +1 is to make sure the actual load addresses always are // unaligned.