From: Jerome Jiang Date: Tue, 2 Apr 2019 17:06:20 +0000 (-0700) Subject: use 64bit integer for memory offset. X-Git-Tag: v1.8.1~144^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f95c826537e911c6ff859deb82fa5d0c945049f;p=libvpx use 64bit integer for memory offset. Change-Id: I3d27286202e26ceecf4e551732b7d536d224d920 --- diff --git a/vp9/common/vp9_reconinter.c b/vp9/common/vp9_reconinter.c index a7466c845..04f41e6a3 100644 --- a/vp9/common/vp9_reconinter.c +++ b/vp9/common/vp9_reconinter.c @@ -136,7 +136,7 @@ static void build_inter_predictors(MACROBLOCKD *xd, int plane, int block, const struct scale_factors *const sf = &xd->block_refs[ref]->sf; struct buf_2d *const pre_buf = &pd->pre[ref]; struct buf_2d *const dst_buf = &pd->dst; - uint8_t *const dst = dst_buf->buf + dst_buf->stride * y + x; + uint8_t *const dst = dst_buf->buf + (int64_t)dst_buf->stride * y + x; const MV mv = mi->sb_type < BLOCK_8X8 ? average_split_mvs(pd, mi, ref, block) : mi->mv[ref].as_mv;