diff options
author | Alan Kelly <alankelly-at-google.com@ffmpeg.org> | 2021-02-19 14:55:39 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-02-19 11:20:32 -0300 |
commit | ee18edb13a9ae3041df961dd5003c2055b5cab35 (patch) | |
tree | 61a837fa03d497d583664b9421e80570452bf4b7 /tests/checkasm/sw_scale.c | |
parent | 14dc28e969f642a8ba0dd28431f6ba30c5e30d7c (diff) | |
download | ffmpeg-ee18edb13a9ae3041df961dd5003c2055b5cab35.tar.gz |
checkasm/sw_scale: properly initialize src_pixer and filter_coeff buffers
Fixes valgrind uninitialised value warnings.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/checkasm/sw_scale.c')
-rw-r--r-- | tests/checkasm/sw_scale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index 7504f8b45f..dee1af820c 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -86,8 +86,8 @@ static void check_yuv2yuvX(void) uint16_t coeff[8]; } *vFilterData; uint8_t d_val = rnd(); - randomize_buffers(filter_coeff, LARGEST_FILTER); - randomize_buffers(src_pixels, LARGEST_FILTER * LARGEST_INPUT_SIZE); + randomize_buffers((uint8_t*)src_pixels, LARGEST_FILTER * LARGEST_INPUT_SIZE * sizeof(int16_t)); + randomize_buffers((uint8_t*)filter_coeff, LARGEST_FILTER * sizeof(int16_t)); ctx = sws_alloc_context(); if (sws_init_context(ctx, NULL, NULL) < 0) fail(); |