changeset 2195:d67223ae168f

c++ fix
author arpi
date Sun, 14 Oct 2001 17:11:17 +0000
parents 28cd390316c0
children d5a44e828ae4
files postproc/postprocess.c postproc/postprocess_template.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/postprocess.c	Sun Oct 14 10:10:45 2001 +0000
+++ b/postproc/postprocess.c	Sun Oct 14 17:11:17 2001 +0000
@@ -1533,6 +1533,8 @@
 	int y;
 	for(y=0; y<BLOCK_SIZE; y++)
 	{
+		const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
+
 		dst[0] = src[0];
 		dst[1] = src[1];
 		dst[2] = src[2];
@@ -1542,7 +1544,6 @@
 		dst[6] = src[6];
 		dst[7] = src[7];
 
-		const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
 		if(ABS(middleEnergy) < 8*QP)
 		{
 			const int q=(src[3] - src[4])/2;
--- a/postproc/postprocess_template.c	Sun Oct 14 10:10:45 2001 +0000
+++ b/postproc/postprocess_template.c	Sun Oct 14 17:11:17 2001 +0000
@@ -1533,6 +1533,8 @@
 	int y;
 	for(y=0; y<BLOCK_SIZE; y++)
 	{
+		const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
+
 		dst[0] = src[0];
 		dst[1] = src[1];
 		dst[2] = src[2];
@@ -1542,7 +1544,6 @@
 		dst[6] = src[6];
 		dst[7] = src[7];
 
-		const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
 		if(ABS(middleEnergy) < 8*QP)
 		{
 			const int q=(src[3] - src[4])/2;