shithub: libvpx

Download patch

ref: e8192cf633fcc1dc5413757189bdf82f1bc4c656
parent: b1d81e19d8c3ea02399280099d634062382186ba
parent: 719dadf3ef144cf1522782aefeee1bc068162932
author: Johann <[email protected]>
date: Thu Jan 9 10:21:19 EST 2014

Merge "Use the correct member for initialization"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2124,10 +2124,10 @@
                      cpi->common.show_frame &&
                      block_size < cpi->sf.max_partition_size);
 
-  int_mv pred_mv[3] = {
-      mbmi->ref_mvs[ref_frame][0], mbmi->ref_mvs[ref_frame][1],
-      x->pred_mv[ref_frame]
-  };
+  int_mv pred_mv[3];
+  pred_mv[0] = mbmi->ref_mvs[ref_frame][0];
+  pred_mv[1] = mbmi->ref_mvs[ref_frame][1];
+  pred_mv[2] = x->pred_mv[ref_frame];
 
   // Get the sad for each candidate reference mv
   for (i = 0; i < num_mv_refs; i++) {
@@ -2355,9 +2355,10 @@
 
   YV12_BUFFER_CONFIG *scaled_ref_frame = get_scaled_ref_frame(cpi, ref);
 
-  int_mv pred_mv[3] = {
-      mbmi->ref_mvs[ref][0], mbmi->ref_mvs[ref][1], x->pred_mv[ref]
-  };
+  int_mv pred_mv[3];
+  pred_mv[0] = mbmi->ref_mvs[ref][0];
+  pred_mv[1] = mbmi->ref_mvs[ref][1];
+  pred_mv[2] = x->pred_mv[ref];
 
   if (scaled_ref_frame) {
     int i;