ref: 1cec875c1feb82dc91469a7cfefaf1ff1dcb63b7
parent: 04199ada5ee70345e1c6e8f18182264e2c26b6a2
author: Ronald S. Bultje <[email protected]>
date: Wed Feb 20 11:39:55 EST 2019
Don't assume chroma subsampling in stride calculation Fixes #252.
--- a/src/recon_tmpl.c
+++ b/src/recon_tmpl.c
@@ -1429,7 +1429,8 @@
if (b->inter_mode == GLOBALMV_GLOBALMV &&
imin(cbw4, cbh4) > 1 && f->gmv_warp_allowed[b->ref[i]])
{
- res = warp_affine(t, NULL, tmp[i], bw4 * 2, b_dim, 1 + pl,
+ res = warp_affine(t, NULL, tmp[i], bw4 * 4 >> ss_hor,
+ b_dim, 1 + pl,
refp, &f->frame_hdr->gmv[b->ref[i]]);
if (res) return res;
} else {