shithub: libvpx

Download patch

ref: e186b66a4410bd5e5db4e3b3085de8705046c1d1
parent: 72d431b69f676b5ba0f37dbeca11eeaa3cfd981c
parent: de3fc51712e6c3a72207f0054814e3c36211e852
author: Alex Converse <aconverse@google.com>
date: Tue Mar 25 11:42:24 EDT 2014

Merge "Add consts to cost_mv_ref."

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -1450,9 +1450,9 @@
   *mode_uv = x->e_mbd.mi_8x8[0]->mbmi.uv_mode;
 }
 
-static int cost_mv_ref(VP9_COMP *cpi, MB_PREDICTION_MODE mode,
+static int cost_mv_ref(const VP9_COMP *cpi, MB_PREDICTION_MODE mode,
                        int mode_context) {
-  MACROBLOCK *const x = &cpi->mb;
+  const MACROBLOCK *const x = &cpi->mb;
   const int segment_id = x->e_mbd.mi_8x8[0]->mbmi.segment_id;
 
   // Don't account for mode here if segment skip is enabled.