From: Adrian Grange Date: Tue, 1 Nov 2011 15:41:43 +0000 (-0700) Subject: Deleted repeated code block X-Git-Tag: v1.3.0~1217^2~380^2~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b450a460fa847c7460f51ab38ecb9ab10f18218;p=libvpx Deleted repeated code block The block of code skipped testing the current mode if the reference frame is AltRef, the mv is not (0,0) and ARNR filtering is disabled. This block of code has already been tested above if the macro CONFIG_SEGFEATURES is set to 0. Change-Id: I3f5710bb8270caad06c9a0eee59fa0daf1f70776 --- diff --git a/vp8/encoder/pickinter.c b/vp8/encoder/pickinter.c index 404a5bf67..cb7a4859b 100644 --- a/vp8/encoder/pickinter.c +++ b/vp8/encoder/pickinter.c @@ -600,17 +600,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, memcpy(mdcounts, MDCounts[x->e_mbd.mode_info_context->mbmi.ref_frame], sizeof(mdcounts)); } -#if !CONFIG_SEGFEATURES - // Only consider ZEROMV/ALTREF_FRAME for alt ref frame, - // unless ARNR filtering is enabled in which case we want - // an unfiltered alternative - if (cpi->is_src_frame_alt_ref && (cpi->oxcf.arnr_max_frames == 0)) - { - if (this_mode != ZEROMV || x->e_mbd.mode_info_context->mbmi.ref_frame != ALTREF_FRAME) - continue; - } -#endif - switch (this_mode) { case B_PRED: