Commit b2760fdd7e for ffmpeg
commit b2760fdd7ebc8bc120f3d1b626f549a3accda31e
Author: Jun Zhao <barryjzhao@tencent.com>
Date: Fri Nov 20 20:23:27 2026 +0800
tests/checkasm/vvc_mc: fix DMVR destination buffer element count
DST_BUF_SIZE is a byte count (32768), but the DMVR destination buffers were
declared as uint16_t[DST_BUF_SIZE], making each 65536 bytes. The memset
clears only DST_BUF_SIZE bytes, so the upper half was never zeroed. Use the
DST_BUF_SIZE / 2 conversion already applied to the int16_t destination
buffers elsewhere in this file, giving 32768 bytes that the existing memset
fully covers. The output comparison reads at most ~5 KiB, well inside.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c
index a59a11d9ce..a5513861db 100644
--- a/tests/checkasm/vvc_mc.c
+++ b/tests/checkasm/vvc_mc.c
@@ -335,8 +335,8 @@ static av_noinline void check_avg(void)
#define SR_RANGE 2
static av_noinline void check_dmvr(void)
{
- LOCAL_ALIGNED_32(uint16_t, dst0, [DST_BUF_SIZE]);
- LOCAL_ALIGNED_32(uint16_t, dst1, [DST_BUF_SIZE]);
+ LOCAL_ALIGNED_32(uint16_t, dst0, [DST_BUF_SIZE / 2]);
+ LOCAL_ALIGNED_32(uint16_t, dst1, [DST_BUF_SIZE / 2]);
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;