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 56b8769a1c.
Sorry for this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-04-10 10:57:45 +02:00
parent e0ed3fa834
commit 4f30bd6fba

View File

@@ -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[] = {