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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4f30bd6fbaa1ce683114bf565dec8498d2f0bfcb
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Apr 10 10:57:45 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Mon Apr 13 12:51:34 2026 +0200

    tests/checkasm/llvidencdsp: Fix nonsense randomization
    
    The first loop was never entered due to a precedence problem;
    the second loop initialized everything, although it was not intended
    that way.
    This has been added in 56b8769a1c26dac8fe51319f0c2b94de67a64217.
    Sorry for this.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 tests/checkasm/llvidencdsp.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/checkasm/llvidencdsp.c b/tests/checkasm/llvidencdsp.c
index 785553f70a..d8ee673e0f 100644
--- a/tests/checkasm/llvidencdsp.c
+++ b/tests/checkasm/llvidencdsp.c
@@ -28,12 +28,12 @@
 
 #include "checkasm.h"
 
-#define randomize_buffers(buf, size)              \
-    do {                                          \
-        for (size_t j = 0; j < size & ~3; j += 4) \
-            AV_WN32(buf + j, rnd());              \
-        for (size_t j = 0; j < size; ++j)         \
-            buf[j] = rnd();                       \
+#define randomize_buffers(buf, size)                \
+    do {                                            \
+        for (size_t j = 0; j < (size & ~3); j += 4) \
+            AV_WN32(buf + j, rnd());                \
+        for (size_t j = size & ~3; j < size; ++j)   \
+            buf[j] = rnd();                         \
     } while (0)
 
 static const struct {uint8_t w, h, s;} planes[] = {

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

Reply via email to