# HG changeset patch # User reimar # Date 1200152612 0 # Node ID f38acc6feffebcadc82056a08c0e1afe36d2cd8c # Parent 5430eb2404ca5e7dc916850050158975fcdd56aa Move uselessly global variables diff -r 5430eb2404ca -r f38acc6feffe libmpcodecs/vf_2xsai.c --- a/libmpcodecs/vf_2xsai.c Sat Jan 12 15:27:35 2008 +0000 +++ b/libmpcodecs/vf_2xsai.c Sat Jan 12 15:43:32 2008 +0000 @@ -80,15 +80,13 @@ + ((((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 @@ } 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);