mirror of https://github.com/HandBrake/HandBrake
libhb: use the correct stride for high depth motion metrics
fix a regression introduced in 71eeb9a.
This commit is contained in:
parent
ca9906773b
commit
5b07040af9
|
|
@ -176,6 +176,8 @@ static float motion_metric##_##nbits(hb_motion_metric_private_t *pv,
|
||||||
buf_b = (uint##nbits##_t *)b; \
|
buf_b = (uint##nbits##_t *)b; \
|
||||||
bw = width / 16; \
|
bw = width / 16; \
|
||||||
bh = height / 16; \
|
bh = height / 16; \
|
||||||
|
stride_a /= pv->bps; \
|
||||||
|
stride_b /= pv->bps; \
|
||||||
\
|
\
|
||||||
uint64_t sum = 0; \
|
uint64_t sum = 0; \
|
||||||
for (int y = 0; y < bh; y++) \
|
for (int y = 0; y < bh; y++) \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue