Message ID | 20210219100139.71553-1-alankelly@google.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/2] tests/checkasm/sw_scale.c | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index a4866723d7..ef414c0a82 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -103,7 +103,11 @@ static void check_yuv2yuvX(void) for(osi = 0; osi < 64; osi += 16){ for(fsi = 0; fsi < FILTER_SIZES; ++fsi){ src = av_malloc(sizeof(int16_t*) * filter_sizes[fsi]); + if(!src) + fail(); vFilterData = av_malloc((filter_sizes[fsi] + 2) * sizeof(union VFilterData)); + if(!vFilterData) + fail(); memset(vFilterData, 0, (filter_sizes[fsi] + 2) * sizeof(union VFilterData)); for(i = 0; i < filter_sizes[fsi]; ++i){ src[i] = &src_pixels[i * LARGEST_INPUT_SIZE];