From 4f9e73495786379aaab251c4e62f62d364375c59 Mon Sep 17 00:00:00 2001 From: rfelker Date: Mon, 3 Apr 2006 06:25:30 +0000 Subject: [PATCH] move 12k from data to bss (reduce binary size by 12k) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18031 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_noise.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/vf_noise.c b/libmpcodecs/vf_noise.c index b3d6250633..ea762c0b0b 100644 --- a/libmpcodecs/vf_noise.c +++ b/libmpcodecs/vf_noise.c @@ -65,7 +65,8 @@ struct vf_priv_s { unsigned int outfmt; }; -static int nonTempRandShift[MAX_RES]= {-1}; +static int nonTempRandShift_init; +static int nonTempRandShift[MAX_RES]; static int patt[4] = { -1,0,1,0 @@ -128,10 +129,11 @@ static int8_t *initNoise(FilterParam *fp){ for (j = 0; j < 3; j++) fp->prev_shift[i][j] = noise + (rand()&(MAX_SHIFT-1)); - if(nonTempRandShift[0]==-1){ + if(!nonTempRandShift_init){ for(i=0; inoise= noise;