aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-11-21 11:14:33 -0300
committerJames Almer <jamrial@gmail.com>2017-11-21 11:24:38 -0300
commitbea8eeaa2c0c97f76bdedc02a1a01296b5bcaa28 (patch)
treea48019d080e433375c619560f1d4eedc8ba99e9d /tests/checkasm
parent9a05c873cf2c2f1f4e85e3df82cde1eb86b6752d (diff)
downloadffmpeg-bea8eeaa2c0c97f76bdedc02a1a01296b5bcaa28.tar.gz
checkasm/utvideodsp: zero initialize the entire buffer
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/checkasm')
-rw-r--r--tests/checkasm/utvideodsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/checkasm/utvideodsp.c b/tests/checkasm/utvideodsp.c
index e811f523e5..618706a6e3 100644
--- a/tests/checkasm/utvideodsp.c
+++ b/tests/checkasm/utvideodsp.c
@@ -63,9 +63,9 @@ LOCAL_ALIGNED_32(type, src_b1, [BUFFER_SIZE]); \
declare_func(void, type *src_r, type *src_g, type *src_b, \
ptrdiff_t linesize_r, ptrdiff_t linesize_g, \
ptrdiff_t linesize_b, int width, int height); \
-memset(src_r0, 0, BUFFER_SIZE); \
-memset(src_g0, 0, BUFFER_SIZE); \
-memset(src_b0, 0, BUFFER_SIZE); \
+memset(src_r0, 0, BUFFER_SIZE * sizeof(type)); \
+memset(src_g0, 0, BUFFER_SIZE * sizeof(type)); \
+memset(src_b0, 0, BUFFER_SIZE * sizeof(type)); \
randomize_plane(src_r0, type); \
randomize_plane(src_g0, type); \
randomize_plane(src_b0, type); \