From: Loren Merritt Date: Tue, 20 Apr 2010 09:40:49 +0000 (+0000) Subject: Fix checkasm's generation of deblock inputs (regression in r1517) X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=f48356d47ae3ecc65a72486604e3ce36dd2d3518;p=x264.git Fix checkasm's generation of deblock inputs (regression in r1517) --- diff --git a/tools/checkasm.c b/tools/checkasm.c index 5d0e98d0..228b75fb 100644 --- a/tools/checkasm.c +++ b/tools/checkasm.c @@ -1101,13 +1101,13 @@ static int check_deblock( int cpu_ref, int cpu_new ) x264_deblock_init( cpu_new, &db_a ); /* not exactly the real values of a,b,tc but close enough */ - for( int i = 35; i >= 0; i-- ) + for( int i = 35, a = 255, c = 250; i >= 0; i-- ) { - int a = 255, c = 250; alphas[i] = a; betas[i] = (i+1)/2; - tcs[i][0] = tcs[i][2] = (c+6)/10; - tcs[i][1] = tcs[i][3] = (c+9)/20; + tcs[i][0] = tcs[i][3] = (c+6)/10; + tcs[i][1] = (c+7)/15; + tcs[i][2] = (c+9)/20; a = a*9/10; c = c*9/10; }