changeset 105:a2f94bfb5793 libavcodec

c++ fix
author arpi
date Sun, 14 Oct 2001 17:11:17 +0000
parents 9607b48e2c2d
children 389391a6d0bf
files libpostproc/postprocess.c libpostproc/postprocess_template.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpostproc/postprocess.c	Sat Oct 13 15:53:24 2001 +0000
+++ b/libpostproc/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/libpostproc/postprocess_template.c	Sat Oct 13 15:53:24 2001 +0000
+++ b/libpostproc/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;