Commit 1cec875c authored by Ronald S. Bultje's avatar Ronald S. Bultje

Don't assume chroma subsampling in stride calculation

Fixes #252.
parent 04199ada
...@@ -1429,7 +1429,8 @@ int bytefn(dav1d_recon_b_inter)(Dav1dTileContext *const t, const enum BlockSize ...@@ -1429,7 +1429,8 @@ int bytefn(dav1d_recon_b_inter)(Dav1dTileContext *const t, const enum BlockSize
if (b->inter_mode == GLOBALMV_GLOBALMV && if (b->inter_mode == GLOBALMV_GLOBALMV &&
imin(cbw4, cbh4) > 1 && f->gmv_warp_allowed[b->ref[i]]) 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]]); refp, &f->frame_hdr->gmv[b->ref[i]]);
if (res) return res; if (res) return res;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment