diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2019-02-21 00:39:55 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2019-02-21 00:40:18 +0300 |
commit | 1cec875c1feb82dc91469a7cfefaf1ff1dcb63b7 (patch) | |
tree | 1e357500642ecde61a00f06e24a7217e12b25785 /src | |
parent | 04199ada5ee70345e1c6e8f18182264e2c26b6a2 (diff) |
Don't assume chroma subsampling in stride calculation
Fixes #252.
Diffstat (limited to 'src')
-rw-r--r-- | src/recon_tmpl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/recon_tmpl.c b/src/recon_tmpl.c index 5c5bd51..de2e0d3 100644 --- a/src/recon_tmpl.c +++ b/src/recon_tmpl.c @@ -1429,7 +1429,8 @@ int bytefn(dav1d_recon_b_inter)(Dav1dTileContext *const t, const enum BlockSize 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 { |