]> granicus.if.org Git - libvpx/commitdiff
Fix valgrind memcpy memory overlaps warning
authorAdrian Grange <agrange@google.com>
Tue, 3 Mar 2015 17:19:54 +0000 (09:19 -0800)
committerAdrian Grange <agrange@google.com>
Tue, 3 Mar 2015 23:06:34 +0000 (15:06 -0800)
Change-Id: Id0bb162b48b891c5c849f0411ef2ac0aa4bbe261

vp9/encoder/vp9_rdopt.c

index 53a5dba1952fd1ccf9f6d026c836642d4a1e3916..846a9f9372990f926c5c1fa06630764cb676a0c9 100644 (file)
@@ -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;