| Index: source/libvpx/vp9/encoder/vp9_mbgraph.c
 | 
| ===================================================================
 | 
| --- source/libvpx/vp9/encoder/vp9_mbgraph.c	(revision 240950)
 | 
| +++ source/libvpx/vp9/encoder/vp9_mbgraph.c	(working copy)
 | 
| @@ -11,7 +11,6 @@
 | 
|  #include <limits.h>
 | 
|  
 | 
|  #include "vpx_mem/vpx_mem.h"
 | 
| -#include "vp9/encoder/vp9_encodeintra.h"
 | 
|  #include "vp9/encoder/vp9_rdopt.h"
 | 
|  #include "vp9/encoder/vp9_segmentation.h"
 | 
|  #include "vp9/encoder/vp9_mcomp.h"
 | 
| @@ -43,7 +42,7 @@
 | 
|        (cpi->speed < 8 ? (cpi->speed > 5 ? 1 : 0) : 2);
 | 
|    step_param = MIN(step_param, (cpi->sf.max_step_search_steps - 2));
 | 
|  
 | 
| -  vp9_clamp_mv_min_max(x, &ref_mv->as_mv);
 | 
| +  vp9_set_mv_search_range(x, &ref_mv->as_mv);
 | 
|  
 | 
|    ref_full.as_mv.col = ref_mv->as_mv.col >> 3;
 | 
|    ref_full.as_mv.row = ref_mv->as_mv.row >> 3;
 | 
| @@ -324,8 +323,8 @@
 | 
|                               1));
 | 
|  
 | 
|    // We are not interested in results beyond the alt ref itself.
 | 
| -  if (n_frames > cpi->frames_till_gf_update_due)
 | 
| -    n_frames = cpi->frames_till_gf_update_due;
 | 
| +  if (n_frames > cpi->rc.frames_till_gf_update_due)
 | 
| +    n_frames = cpi->rc.frames_till_gf_update_due;
 | 
|  
 | 
|    // defer cost to reference frames
 | 
|    for (i = n_frames - 1; i >= 0; i--) {
 | 
| @@ -397,7 +396,7 @@
 | 
|  
 | 
|    // we need to look ahead beyond where the ARF transitions into
 | 
|    // being a GF - so exit if we don't look ahead beyond that
 | 
| -  if (n_frames <= cpi->frames_till_gf_update_due)
 | 
| +  if (n_frames <= cpi->rc.frames_till_gf_update_due)
 | 
|      return;
 | 
|    if (n_frames > (int)cpi->frames_till_alt_ref_frame)
 | 
|      n_frames = cpi->frames_till_alt_ref_frame;
 | 
| 
 |