[x264-devel] commit: Fix crash with --subme 0 + --weightp > 0. Regression in r1535 ( Anton Mitrofanov )

git at videolan.org git at videolan.org
Tue Jun 15 10:48:24 CEST 2010


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Wed Jun  9 22:53:08 2010 +0400| [8c69931e5045b4d019ce24bbcba4f05715aa2d0e] | committer: Jason Garrett-Glaser 

Fix crash with --subme 0 + --weightp > 0. Regression in r1535

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8c69931e5045b4d019ce24bbcba4f05715aa2d0e
---

 encoder/me.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/me.c b/encoder/me.c
index dc0af99..2914eb3 100644
--- a/encoder/me.c
+++ b/encoder/me.c
@@ -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-- )



More information about the x264-devel mailing list