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
This commit is contained in:
rfelker 2006-04-03 06:25:30 +00:00
parent 03fc601438
commit 4f9e734957
1 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,8 @@ struct vf_priv_s {
unsigned int outfmt; unsigned int outfmt;
}; };
static int nonTempRandShift[MAX_RES]= {-1}; static int nonTempRandShift_init;
static int nonTempRandShift[MAX_RES];
static int patt[4] = { static int patt[4] = {
-1,0,1,0 -1,0,1,0
@ -128,10 +129,11 @@ static int8_t *initNoise(FilterParam *fp){
for (j = 0; j < 3; j++) for (j = 0; j < 3; j++)
fp->prev_shift[i][j] = noise + (rand()&(MAX_SHIFT-1)); fp->prev_shift[i][j] = noise + (rand()&(MAX_SHIFT-1));
if(nonTempRandShift[0]==-1){ if(!nonTempRandShift_init){
for(i=0; i<MAX_RES; i++){ for(i=0; i<MAX_RES; i++){
nonTempRandShift[i]= rand()&(MAX_SHIFT-1); nonTempRandShift[i]= rand()&(MAX_SHIFT-1);
} }
nonTempRandShift_init = 1;
} }
fp->noise= noise; fp->noise= noise;