From: Fiona 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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d74fbda1559edd4240a956ba4a232adf2c0c8c5;p=libx264 Avoid a redundant qpel check in lookahead with subme <= 1. --- diff --git a/encoder/me.c b/encoder/me.c index 5377774c..1d372f85 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 );