From 0d74fbda1559edd4240a956ba4a232adf2c0c8c5 Mon Sep 17 00:00:00 2001 From: Fiona 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 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 ); -- 2.40.0