This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 42ebefbd98d861a77b581c8e92a6532fa6ca205c Author: Andreas Rheinhardt <[email protected]> AuthorDate: Wed Mar 18 11:07:22 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Wed Mar 18 18:05:06 2026 +0100 tests/checkasm/rv34dsp: Don't use unnecessarily large buffers RV34 uses 4x4 blocks. Reviewed-by: Lynne <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> --- tests/checkasm/rv34dsp.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/checkasm/rv34dsp.c b/tests/checkasm/rv34dsp.c index 5703ba9b82..efb4ce913b 100644 --- a/tests/checkasm/rv34dsp.c +++ b/tests/checkasm/rv34dsp.c @@ -25,8 +25,6 @@ #include "checkasm.h" -#define BUF_SIZE 1024 - #define randomize(buf, len) \ do { \ for (int i = 0; i < len; i++) \ @@ -37,16 +35,16 @@ static void test_rv34_inv_transform_dc(RV34DSPContext *s) { declare_func(void, int16_t *block); if (check_func(s->rv34_inv_transform_dc, "rv34_inv_transform_dc")) { - LOCAL_ALIGNED_16(int16_t, p1, [BUF_SIZE]); - LOCAL_ALIGNED_16(int16_t, p2, [BUF_SIZE]); + DECLARE_ALIGNED_16(int16_t, p1)[4*4]; + DECLARE_ALIGNED_16(int16_t, p2)[4*4]; - randomize(p1, BUF_SIZE); - memcpy(p2, p1, BUF_SIZE * sizeof(*p1)); + randomize(p1, FF_ARRAY_ELEMS(p1)); + memcpy(p2, p1, sizeof(p1)); call_ref(p1); call_new(p2); - if (memcmp(p1, p2, BUF_SIZE * sizeof (*p1)) != 0) { + if (memcmp(p1, p2, sizeof(p1))) { fail(); } @@ -60,16 +58,16 @@ static void test_rv34_idct_dc_add(RV34DSPContext *s) { declare_func(void, uint8_t *dst, ptrdiff_t stride, int dc); if (check_func(s->rv34_idct_dc_add, "rv34_idct_dc_add")) { - LOCAL_ALIGNED_16(uint8_t, p1, [BUF_SIZE]); - LOCAL_ALIGNED_16(uint8_t, p2, [BUF_SIZE]); + DECLARE_ALIGNED_16(uint8_t, p1)[4*4]; + DECLARE_ALIGNED_16(uint8_t, p2)[4*4]; - randomize(p1, BUF_SIZE); - memcpy(p2, p1, BUF_SIZE * sizeof(*p1)); + randomize(p1, FF_ARRAY_ELEMS(p1)); + memcpy(p2, p1, sizeof(p1)); call_ref(p1, 4, 5); call_new(p2, 4, 5); - if (memcmp(p1, p2, BUF_SIZE * sizeof (*p1)) != 0) { + if (memcmp(p1, p2, sizeof(p1))) { fail(); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
