From: Jason Garrett-Glaser Date: Fri, 21 May 2010 20:07:12 +0000 (-0700) Subject: Avoid a redundant qpel check in lookahead with subme <= 1. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=23e92b58c0e4d15123fcb17929b531f1cf6f8dd6;p=x264.git Avoid a redundant qpel check in lookahead with subme <= 1. --- diff --git a/encoder/me.c b/encoder/me.c index a35da532..77073cc5 100644 --- a/encoder/me.c +++ b/encoder/me.c @@ -852,7 +852,7 @@ static void refine_subpel( x264_t *h, x264_me_t *m, int hpel_iters, int qpel_ite break; } - if( !b_refine_qpel ) + if( !b_refine_qpel && (h->pixf.mbcmp_unaligned[0] != h->pixf.fpelcmp[0] || b_chroma_me) ) { bcost = COST_MAX; COST_MV_SATD( bmx, bmy, -1 );