]> git.videolan.org Git - x264.git/commitdiff
Make the #if'd out naive ESA actually match the real implementation
authorLoren Merritt <pengvado@akuvian.org>
Thu, 28 Oct 2010 20:29:42 +0000 (13:29 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 10 Nov 2010 08:10:54 +0000 (00:10 -0800)
encoder/me.c

index 89d7ee1d38ad581cbcd2c0066aac3d9fe0668cb0..3f8d8e5fb016ba5bcd48023035fa356c570a71d5 100644 (file)
@@ -583,7 +583,7 @@ void x264_me_search_ref( x264_t *h, x264_me_t *m, int16_t (*mvc)[2], int i_mvc,
 #if 0
             /* plain old exhaustive search */
             for( int my = min_y; my <= max_y; my++ )
-                for( int mx = min_x; mx <= max_x; mx++ )
+                for( int mx = min_x; mx < min_x + width; mx++ )
                     COST_MV( mx, my );
 #else
             /* successive elimination by comparing DC before a full SAD,