From 23e92b58c0e4d15123fcb17929b531f1cf6f8dd6 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Fri, 21 May 2010 13:07:12 -0700 Subject: [PATCH] Avoid a redundant qpel check in lookahead with subme <= 1. --- encoder/me.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.47.3