shithub: libvpx

Download patch

ref: 852f62fde5965023b0085dea94d9e1829b02fd24
parent: 40f177ab3e5c7696f67c9e936bd36c83c0a45a8a
author: Adrian Grange <[email protected]>
date: Tue Mar 3 04:19:54 EST 2015

Fix valgrind memcpy memory overlaps warning

Change-Id: Id0bb162b48b891c5c849f0411ef2ac0aa4bbe261

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -1316,8 +1316,8 @@
 
   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;