Commit 4d9dcb7b49 for ffmpeg
commit 4d9dcb7b49c63074fe6fef5e8412e483a364159d
Author: lusoris <lusoris@proton.me>
Date: Fri Oct 30 14:48:39 2026 +0100
tests/checkasm/vvc_mc: compare every DMVR output row
The DMVR functions advance dst by MAX_PB_SIZE samples per row and
check_dmvr() indexes a uint16_t pointer, but its stride is computed in
bytes. The comparison therefore reads every second row and leaves the
odd rows unchecked. Use the stride in samples.
With a mismatch planted in row 1, the test passes before this change
and fails after it. With a mismatch planted in row 2, it fails both
before and after.
Signed-off-by: lusoris <lusoris@proton.me>
diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c
index d712cb8110..a59a11d9ce 100644
--- a/tests/checkasm/vvc_mc.c
+++ b/tests/checkasm/vvc_mc.c
@@ -339,7 +339,7 @@ static av_noinline void check_dmvr(void)
LOCAL_ALIGNED_32(uint16_t, dst1, [DST_BUF_SIZE]);
LOCAL_ALIGNED_32(uint8_t, src0, [SRC_BUF_SIZE]);
LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]);
- const int dst_stride = MAX_PB_SIZE * sizeof(int16_t);
+ const int dst_stride = MAX_PB_SIZE;
VVCDSPContext c;
declare_func(void, int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, int height,