From: Loren Merritt Date: Thu, 28 Oct 2010 20:29:42 +0000 (-0700) Subject: Make the #if'd out naive ESA actually match the real implementation X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=75b018171f37dd82d5c63243c2580ec181513e41;p=x264.git Make the #if'd out naive ESA actually match the real implementation --- diff --git a/encoder/me.c b/encoder/me.c index 89d7ee1d..3f8d8e5f 100644 --- a/encoder/me.c +++ b/encoder/me.c @@ -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,