This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit fc0e0ef02282695fcc94df20f946c89b303080fc
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Mon Jan 26 02:16:47 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Thu Jan 29 12:25:33 2026 +0100

    tests/checkasm/hevc_dequant: Only init buffer when needed
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 tests/checkasm/hevc_dequant.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/checkasm/hevc_dequant.c b/tests/checkasm/hevc_dequant.c
index 20e322994a..5036662666 100644
--- a/tests/checkasm/hevc_dequant.c
+++ b/tests/checkasm/hevc_dequant.c
@@ -48,11 +48,11 @@ static void check_dequant(HEVCDSPContext *h, int bit_depth)
         int size = block_size * block_size;
         declare_func(void, int16_t *coeffs, int16_t log2_size);
 
-        randomize_buffers(coeffs0, size);
-        memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size);
-
         if (check_func(h->dequant, "hevc_dequant_%dx%d_%d",
                        block_size, block_size, bit_depth)) {
+            randomize_buffers(coeffs0, size);
+            memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size);
+
             call_ref(coeffs0, i);
             call_new(coeffs1, i);
             if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size))

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to