From: Jason Garrett-Glaser Date: Thu, 14 Jan 2010 01:16:13 +0000 (-0500) Subject: Faster --me tesa X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=918ca1e55351446478d4dcee5936c5843bf79925;p=x264.git Faster --me tesa --- diff --git a/encoder/me.c b/encoder/me.c index b2a530d6..6a01d00d 100644 --- a/encoder/me.c +++ b/encoder/me.c @@ -652,12 +652,11 @@ me_hex2: } while( nmvsad > limit ) { - int bsad = mvsads[0].sad; int bi = 0; for( i=1; i mvsads[bi].sad ) + bi = i; nmvsad--; - mvsads[bi] = mvsads[nmvsad]; if( sizeof( mvsad_t ) == sizeof( uint64_t ) ) CP64( &mvsads[bi], &mvsads[nmvsad] ); else