[MPlayer-cvslog] r25697 - trunk/libmpcodecs/vf_2xsai.c

reimar subversion at mplayerhq.hu
Sat Jan 12 16:43:33 CET 2008


Author: reimar
Date: Sat Jan 12 16:43:32 2008
New Revision: 25697

Log:
Move uselessly global variables


Modified:
   trunk/libmpcodecs/vf_2xsai.c

Modified: trunk/libmpcodecs/vf_2xsai.c
==============================================================================
--- trunk/libmpcodecs/vf_2xsai.c	(original)
+++ trunk/libmpcodecs/vf_2xsai.c	Sat Jan 12 16:43:32 2008
@@ -80,15 +80,13 @@ int Init_2xSaI(int d)
 	+ ((((A & qlowpixelMask) + (B & qlowpixelMask) + (C & qlowpixelMask) + (D & qlowpixelMask)) >> 2) & qlowpixelMask)
 
 
-static unsigned char *src_line[4];
-static unsigned char *dst_line[2];
-
 void Super2xSaI_ex(uint8_t *src, uint32_t src_pitch, 
 		   uint8_t *dst, uint32_t dst_pitch,
 		   uint32_t width, uint32_t height, int sbpp) {
 
 	unsigned int x, y;
 	uint32_t color[16];
+	unsigned char *src_line[4];
 
 	/* Point to the first 3 lines. */
 	src_line[0] = src;
@@ -120,6 +118,7 @@ void Super2xSaI_ex(uint8_t *src, uint32_
 	}
 
 	for (y = 0; y < height; y++) {
+		unsigned char *dst_line[2];
 
 		dst_line[0] = dst + dst_pitch*2*y;
 		dst_line[1] = dst + dst_pitch*(2*y+1);



More information about the MPlayer-cvslog mailing list