libhb: use the correct stride for high depth motion metrics

fix a regression introduced in 71eeb9a.
This commit is contained in:
Damiano Galassi 2025-08-29 13:20:05 +02:00
parent ca9906773b
commit 5b07040af9
No known key found for this signature in database
GPG Key ID: 5452E231DFDBCA11
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ static float motion_metric##_##nbits(hb_motion_metric_private_t *pv,
buf_b = (uint##nbits##_t *)b; \
bw = width / 16; \
bh = height / 16; \
stride_a /= pv->bps; \
stride_b /= pv->bps; \
\
uint64_t sum = 0; \
for (int y = 0; y < bh; y++) \