From b0a11dd7e9d5e74d65d8db3550e2f3bdf5992701 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 12 Jan 2008 15:43:32 +0000 Subject: Move uselessly global variables git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25697 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_2xsai.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libmpcodecs/vf_2xsai.c b/libmpcodecs/vf_2xsai.c index 358d8049f2..f90c723b24 100644 --- a/libmpcodecs/vf_2xsai.c +++ b/libmpcodecs/vf_2xsai.c @@ -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_t src_pitch, } 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); -- cgit v1.2.3