shithub: libvpx

Download patch

ref: ba29125f7b6f03782033855aeef09d773342b972
parent: 427cdf0a41988320c721462d02884a6a4f19aee4
author: Jingning Han <jingning@google.com>
date: Thu Mar 12 14:46:40 EDT 2015

Reset src buffer only once in vp9_int_pro_motion_estimation

Change-Id: I5c96b6a25f9df60da65b7af7c92a921b611746e3

--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -1844,8 +1844,8 @@
 
   best_sad = INT_MAX;
   this_mv = *tmp_mv;
+  src_buf = x->plane[0].src.buf;
   for (idx = 0; idx < 5; ++idx) {
-    src_buf = x->plane[0].src.buf;
     ref_buf = xd->plane[0].pre[0].buf +
         (search_pos[idx].row + this_mv.row) * ref_stride +
         (search_pos[idx].col + this_mv.col);