From: Adrian Grange Date: Tue, 3 Mar 2015 17:19:54 +0000 (-0800) Subject: Fix valgrind memcpy memory overlaps warning X-Git-Tag: v1.4.0~86^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=852f62fde5965023b0085dea94d9e1829b02fd24;p=platform%2Fupstream%2Flibvpx.git Fix valgrind memcpy memory overlaps warning Change-Id: Id0bb162b48b891c5c849f0411ef2ac0aa4bbe261 --- diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 53a5dba..846a9f9 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -1316,8 +1316,8 @@ static int set_and_cost_bmi_mvs(VP9_COMP *cpi, MACROBLOCKD *xd, int i, for (idy = 0; idy < num_4x4_blocks_high; ++idy) for (idx = 0; idx < num_4x4_blocks_wide; ++idx) - vpx_memcpy(&mic->bmi[i + idy * 2 + idx], - &mic->bmi[i], sizeof(mic->bmi[i])); + vpx_memmove(&mic->bmi[i + idy * 2 + idx], + &mic->bmi[i], sizeof(mic->bmi[i])); return cost_mv_ref(cpi, mode, mbmi->mode_context[mbmi->ref_frame[0]]) + thismvcost;