]> granicus.if.org Git - libx264/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)
committerFiona Glaser <fiona@x264.com>
Mon, 14 Jun 2010 19:17:30 +0000 (12:17 -0700)
encoder/me.c

index b2db7d18cd85e8e99da7caadf7ccf5fc0a5711e9..0b45199614b93639352cfbbcb2a9acb70835257a 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-- )