From 8d9fe0220794bb35a0e2b17ff9f0c0660b781bcb Mon Sep 17 00:00:00 2001
From: Loren Merritt <pengvado@akuvian.org>
Date: Tue, 20 Apr 2010 09:40:49 +0000
Subject: [PATCH] Fix checkasm's generation of deblock inputs (regression in
 r1517)

---
 tools/checkasm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/checkasm.c b/tools/checkasm.c
index 6d64aa1d..2e4b2133 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;
     }
-- 
2.40.0