This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit db2e4c18f09e3a17e701762982429bcbbc11a34b Author: Andreas Rheinhardt <[email protected]> AuthorDate: Thu Nov 5 11:04:50 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Sat Nov 7 21:41:30 2026 +0100 tests/checkasm/vf_limiter: Only initialize when testing function Also randomize the padding in between src's lines (the padding is not guaranteed to be zero in actual usage) and use checkasm_randomize for it instead of doing it one byte at a time. Reviewed-by: Marvin Scholz <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> --- tests/checkasm/vf_limiter.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/checkasm/vf_limiter.c b/tests/checkasm/vf_limiter.c index 28730677fd..dac8a32051 100644 --- a/tests/checkasm/vf_limiter.c +++ b/tests/checkasm/vf_limiter.c @@ -36,14 +36,6 @@ static void check_limiter(int depth) declare_func(void, const uint8_t *, uint8_t *, ptrdiff_t, ptrdiff_t, int, int, int, int); - memset(dst_ref, 0, HEIGHT * WIDTH_PADDED); - memset(dst_new, 0, HEIGHT * WIDTH_PADDED); - memset(src, 0, HEIGHT * WIDTH_PADDED); - for (int y = 0; y < HEIGHT; y++) { - for (int x = 0; x < WIDTH; x++) - src[y * WIDTH_PADDED + x] = rnd() & 0xFF; - } - const int min = 16 << (depth - 8); const int max = 235 << (depth - 8); @@ -55,6 +47,10 @@ static void check_limiter(int depth) ff_limiter_init(&s, depth); if (check_func(s.limiter, "limiter%d", depth)) { + memset(dst_ref, 0, HEIGHT * WIDTH_PADDED); + memset(dst_new, 0, HEIGHT * WIDTH_PADDED); + checkasm_randomize(src, HEIGHT * WIDTH_PADDED); + call_ref(src, dst_ref, WIDTH_PADDED, WIDTH_PADDED, w, HEIGHT, min, max); call_new(src, dst_new, WIDTH_PADDED, WIDTH_PADDED, w, HEIGHT, min, max); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
