From 57461cb4cec75eff41f1ac5b0f136511c5ccad28 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 1 Nov 2007 12:21:13 +0000 Subject: [PATCH] fix a possible nondeterminism with me=umh + threads. git-svn-id: svn://svn.videolan.org/x264/trunk@682 df754926-b1dd-0310-bc7b-ec298dee348c --- encoder/me.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/encoder/me.c b/encoder/me.c index 7833fd4b..f32ad8e2 100644 --- a/encoder/me.c +++ b/encoder/me.c @@ -439,7 +439,9 @@ me_hex2: COST_MV_X4( -2*i, 3*i, -2*i,-3*i, 0*i,-4*i, 2*i,-3*i ); } } - goto me_hex2; + if( bmy <= mv_y_max ) + goto me_hex2; + break; } case X264_ME_ESA: -- 2.40.0