diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 1d06d9d57600f7b6cfe616a5c42b435470aa6bfc..ab32fa12ccc786614574a0e76f3301669e7a1711 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -534,11 +534,12 @@ static void update_state(VP9_COMP *cpi, MACROBLOCK *x, // Note how often each mode chosen as best cpi->mode_chosen_counts[mb_mode_index]++; if (mbmi->mode == SPLITMV || mbmi->mode == NEWMV) { - static int testcount = 0; int_mv best_mv, best_second_mv; - unsigned int best_index; MV_REFERENCE_FRAME rf = mbmi->ref_frame; +#if CONFIG_NEW_MVREF + unsigned int best_index; MV_REFERENCE_FRAME sec_ref_frame = mbmi->second_ref_frame; +#endif best_mv.as_int = ctx->best_ref_mv.as_int; best_second_mv.as_int = ctx->second_best_ref_mv.as_int; if (mbmi->mode == NEWMV) { diff --git a/vp9/encoder/vp9_encodemb.c b/vp9/encoder/vp9_encodemb.c index 3a898aec82581cefb5e946e5ca6af355340c2e0e..3596d9ffad5c8e6dbe606bac3e6c8bcf33a5d769 100644 --- a/vp9/encoder/vp9_encodemb.c +++ b/vp9/encoder/vp9_encodemb.c @@ -610,7 +610,6 @@ void vp9_optimize_mby_4x4(MACROBLOCK *x) { ENTROPY_CONTEXT_PLANES t_above, t_left; ENTROPY_CONTEXT *ta; ENTROPY_CONTEXT *tl; - MB_PREDICTION_MODE mode = x->e_mbd.mode_info_context->mbmi.mode; if (!x->e_mbd.above_context || !x->e_mbd.left_context) return; diff --git a/vp9/encoder/vp9_encodemv.c b/vp9/encoder/vp9_encodemv.c index b2589c10705e02c2e647d8a167580f6ed7f9b703..9431f078105cb56aa11ae60ccbf633e03f6b7257 100644 --- a/vp9/encoder/vp9_encodemv.c +++ b/vp9/encoder/vp9_encodemv.c @@ -414,7 +414,9 @@ void vp9_write_nmv_probs(VP9_COMP* const cpi, int usehp, vp9_writer* const bc) { unsigned int branch_ct_fp[2][4 - 1][2]; unsigned int branch_ct_class0_hp[2][2]; unsigned int branch_ct_hp[2][2]; +#ifdef MV_GROUP_UPDATE int savings = 0; +#endif #ifdef NMV_STATS if (!cpi->dummy_packing) diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 8a05eb8fd1527be2cbe097bd0843d26925f9e556..6179f2cf9142628c4a1b0bd1255dc321dc72f37d 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -482,7 +482,6 @@ void vp9_first_pass(VP9_COMP *cpi) { // if( cm->current_video_frame == 0) // if ( 0 ) { - int flag[2] = {1, 1}; vp9_init_mv_probs(cm); vp9_initialize_rd_consts(cpi, cm->base_qindex + cm->y1dc_delta_q); }