]> git.videolan.org Git - x264.git/commitdiff
Avoid a redundant qpel check in lookahead with subme <= 1.
authorJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 21 May 2010 20:07:12 +0000 (13:07 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 26 May 2010 09:06:38 +0000 (02:06 -0700)
encoder/me.c

index a35da532cdad598f18504e7df1f3c423eb401f75..77073cc5b0534ccd6549361cc0f170ce2c42acb5 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 );