mirror of https://git.ffmpeg.org/ffmpeg.git
checkasm/sw_scale: properly initialize src_pixer and filter_coeff buffers
Fixes valgrind uninitialised value warnings. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
14dc28e969
commit
ee18edb13a
|
@ -86,8 +86,8 @@ static void check_yuv2yuvX(void)
|
||||||
uint16_t coeff[8];
|
uint16_t coeff[8];
|
||||||
} *vFilterData;
|
} *vFilterData;
|
||||||
uint8_t d_val = rnd();
|
uint8_t d_val = rnd();
|
||||||
randomize_buffers(filter_coeff, LARGEST_FILTER);
|
randomize_buffers((uint8_t*)src_pixels, LARGEST_FILTER * LARGEST_INPUT_SIZE * sizeof(int16_t));
|
||||||
randomize_buffers(src_pixels, LARGEST_FILTER * LARGEST_INPUT_SIZE);
|
randomize_buffers((uint8_t*)filter_coeff, LARGEST_FILTER * sizeof(int16_t));
|
||||||
ctx = sws_alloc_context();
|
ctx = sws_alloc_context();
|
||||||
if (sws_init_context(ctx, NULL, NULL) < 0)
|
if (sws_init_context(ctx, NULL, NULL) < 0)
|
||||||
fail();
|
fail();
|
||||||
|
|
Loading…
Reference in New Issue