From 75b018171f37dd82d5c63243c2580ec181513e41 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 28 Oct 2010 13:29:42 -0700 Subject: [PATCH] Make the #if'd out naive ESA actually match the real implementation --- encoder/me.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.3