diff options
author | James Almer <jamrial@gmail.com> | 2021-02-19 16:19:11 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-02-19 16:19:11 -0300 |
commit | d52ceed9fd3655113657d9b572fc2c83b7f913cc (patch) | |
tree | 0612ed9b3c9da1ea0c5563bfc5a90df22a99d152 /tests/checkasm | |
parent | ee18edb13a9ae3041df961dd5003c2055b5cab35 (diff) | |
download | ffmpeg-d52ceed9fd3655113657d9b572fc2c83b7f913cc.tar.gz |
tests/checkasm/sw_scale: use memset() to fill dither
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/sw_scale.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index dee1af820c..a10118704b 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -86,6 +86,7 @@ static void check_yuv2yuvX(void) uint16_t coeff[8]; } *vFilterData; uint8_t d_val = rnd(); + memset(dither, d_val, 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(); @@ -93,9 +94,6 @@ static void check_yuv2yuvX(void) fail(); ff_getSwsFunc(ctx); - for(i = 0; i < LARGEST_INPUT_SIZE; ++i){ - dither[i] = d_val; - } for(isi = 0; isi < INPUT_SIZES; ++isi){ dstW = input_sizes[isi]; for(osi = 0; osi < 64; osi += 16){ |