]> git.videolan.org Git - x264.git/commitdiff
Fix crash with --subme 0 + --weightp > 0. Regression in r1535
authorAnton Mitrofanov <BugMaster@narod.ru>
Wed, 9 Jun 2010 18:53:08 +0000 (22:53 +0400)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 14 Jun 2010 19:17:30 +0000 (12:17 -0700)
encoder/me.c

index dc0af99bd1b9ab643c7cca69aa37970e0bdad9a1..2914eb334df889d8bd1bb227f5df0efd69e4c1c0 100644 (file)
@@ -874,7 +874,7 @@ static void refine_subpel( x264_t *h, x264_me_t *m, int hpel_iters, int qpel_ite
     }
 
     /* quarterpel diamond search */
-    if( h->mb.i_subpel_refine > 1 )
+    if( h->mb.i_subpel_refine != 1 )
     {
         bdir = -1;
         for( int i = qpel_iters; i > 0; i-- )