Mercurial > mplayer.hg
changeset 25669:f38acc6feffe
Move uselessly global variables
author | reimar |
---|---|
date | Sat, 12 Jan 2008 15:43:32 +0000 |
parents | 5430eb2404ca |
children | 7d5b292b8ade |
files | libmpcodecs/vf_2xsai.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);