]> granicus.if.org Git - libvpx/commitdiff
use 64bit integer for memory offset.
authorJerome Jiang <jianj@google.com>
Tue, 2 Apr 2019 17:06:20 +0000 (10:06 -0700)
committerJerome Jiang <jianj@google.com>
Tue, 2 Apr 2019 17:06:20 +0000 (10:06 -0700)
Change-Id: I3d27286202e26ceecf4e551732b7d536d224d920

vp9/common/vp9_reconinter.c

index a7466c8457e9a9166e4fc5510a4a4e81fe2089b6..04f41e6a33638472e4dab413ac69f687558f0a71 100644 (file)
@@ -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;