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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 6f3fd19b9a tests/checkasm/scene_sad: benchmark the width that is tested
6f3fd19b9a is described below

commit 6f3fd19b9a2525b399e3f5e34067d1950b226895
Author:     Baptiste Coudurier <[email protected]>
AuthorDate: Wed Nov 11 12:05:58 2026 -0800
Commit:     Baptiste Coudurier <[email protected]>
CommitDate: Mon Nov 16 17:38:50 2026 +0000

    tests/checkasm/scene_sad: benchmark the width that is tested
    
    check_scene_sad() halves the width for depths above 8, so that a row
    of 16-bit samples fits in the stride, and randomizes and checks
    width * HEIGHT samples. The benchmark call passed WIDTH instead, which
    for these depths is twice the row size in bytes: each row ran into the
    next one, and the last rows read past the randomized data into the
    uninitialized second half of the buffers. The benchmark thus measured
    a different workload than the one checked.
    
    Pass width, as the call_ref() and call_new() calls do.
    
    Co-Authored-By: Claude Fable 5.2 <[email protected]>
---
 tests/checkasm/scene_sad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/scene_sad.c b/tests/checkasm/scene_sad.c
index bc33c428c6..b15df3087c 100644
--- a/tests/checkasm/scene_sad.c
+++ b/tests/checkasm/scene_sad.c
@@ -59,7 +59,7 @@ static void check_scene_sad(int depth)
                     depth, (unsigned long long) sum1, (unsigned long long) 
sum2);
             fail();
         }
-        bench_new(src1, STRIDE, src2, STRIDE, WIDTH, HEIGHT, &sum2);
+        bench_new(src1, STRIDE, src2, STRIDE, width, HEIGHT, &sum2);
     }
 }
 

-- 
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]

Reply via email to