mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
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:
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user