diff mbox series

[FFmpeg-devel,1/3] checkasm/v210enc: test the entire width of 10-bit planar input arrays

Message ID 20221121124408.1577897-1-jdarnley@obe.tv
State New
Headers show
Series [FFmpeg-devel,1/3] checkasm/v210enc: test the entire width of 10-bit planar input arrays | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Darnley Nov. 21, 2022, 12:44 p.m. UTC
---
 tests/checkasm/v210enc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/checkasm/v210enc.c b/tests/checkasm/v210enc.c
index 9942e08137..9fb8321c25 100644
--- a/tests/checkasm/v210enc.c
+++ b/tests/checkasm/v210enc.c
@@ -72,8 +72,10 @@ 
             randomize_buffers(mask);                                               \
             call_ref(y0 + y_offset, u0 + uv_offset, v0 + uv_offset, dst0, width);  \
             call_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width);  \
-            if (memcmp(y0, y1, BUF_SIZE) || memcmp(u0, u1, BUF_SIZE / 2) ||        \
-                memcmp(v0, v1, BUF_SIZE / 2) || memcmp(dst0, dst1, width * 8 / 3)) \
+            if (memcmp(y0, y1, BUF_SIZE * sizeof(type))                            \
+                    || memcmp(u0, u1, BUF_SIZE * sizeof(type) / 2)                 \
+                    || memcmp(v0, v1, BUF_SIZE * sizeof(type) / 2)                 \
+                    || memcmp(dst0, dst1, width * 8 / 3))                          \
                 fail();                                                            \
             bench_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \
         }                                                                          \