[MPlayer-dev-eng] [patch] "parse error" in postproc/postprocess.c

Adam Di Carlo adam at onshore-devel.com
Sun Oct 14 18:41:55 CEST 2001


The following patch is needed to compile postproc/postprocess.c in the
non-optimized situation (here, PowerPC).  This is a Debian/woody
system, using gcc 2.95.4.

Please CC me on any replies that should be directed at me, since I'm 
not on this list.

-- 
...Adam Di Carlo..<adam at onshore-devel.com>...<URL:http://www.onshored.com/>

Index: postproc/postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.9
diff -u -u -r1.9 postprocess.c
--- postproc/postprocess.c	13 Oct 2001 15:53:24 -0000	1.9
+++ postproc/postprocess.c	14 Oct 2001 16:57:09 -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;




More information about the MPlayer-dev-eng mailing list