]> granicus.if.org Git - libx264/commitdiff
Avoid a redundant qpel check in lookahead with subme <= 1.
authorFiona Glaser <fiona@x264.com>
Fri, 21 May 2010 20:07:12 +0000 (13:07 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 26 May 2010 09:06:38 +0000 (02:06 -0700)
encoder/me.c

index 5377774cfaf5790a4104c724af530458dfd31c10..1d372f85ea5731f2878e7440ff90546e568a2f68 100644 (file)
@@ -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 );