diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-05-30 15:33:53 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2020-06-01 18:28:07 +0300 |
commit | 7f76f20fa0a8aad6de50634a5cb60dc53117d6ab (patch) | |
tree | 81153f062dd05d2abdca00747612baf6f8a6299a | |
parent | 2a9ffd89fcb09bd69b2130da039ad2caba79cf33 (diff) |
checkasm: sw_rgb: Fix mixed declaration and code
Fix mixed declaration and code.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | tests/checkasm/sw_rgb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/checkasm/sw_rgb.c b/tests/checkasm/sw_rgb.c index 1e8ea151c0..e5aad20c6d 100644 --- a/tests/checkasm/sw_rgb.c +++ b/tests/checkasm/sw_rgb.c @@ -137,12 +137,13 @@ static void check_interleave_bytes(void) int w = i > 0 ? i : (1 + (rnd() % (MAX_STRIDE-2))); int h = 1 + (rnd() % (MAX_HEIGHT-2)); - memset(dst0, 0, 2 * MAX_STRIDE * MAX_HEIGHT); - memset(dst1, 0, 2 * MAX_STRIDE * MAX_HEIGHT); - int src0_offset = 0, src0_stride = MAX_STRIDE; int src1_offset = 0, src1_stride = MAX_STRIDE; int dst_offset = 0, dst_stride = 2 * MAX_STRIDE; + + memset(dst0, 0, 2 * MAX_STRIDE * MAX_HEIGHT); + memset(dst1, 0, 2 * MAX_STRIDE * MAX_HEIGHT); + // Try different combinations of negative strides if (i & 1) { src0_offset = (h-1)*src0_stride; |