[MPlayer-cvslog] CVS: main/libmpcodecs vf_noise.c,1.17,1.18

Alex Beregszaszi alex at fsn.hu
Mon Apr 3 20:52:27 CEST 2006


Hi,

> -static int nonTempRandShift[MAX_RES]= {-1};
> +static int nonTempRandShift_init;

For case of safety set this to zero. I know in theory everything is
perfect...

> +static int nonTempRandShift[MAX_RES];
>  
>  static int patt[4] = {
>      -1,0,1,0
> @@ -128,10 +129,11 @@
>  	    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; i<MAX_RES; i++){
>  			nonTempRandShift[i]= rand()&(MAX_SHIFT-1);
>  		}
> +		nonTempRandShift_init = 1;

-- 
Alex Beregszaszi	email: alex at fsn.hu
Free Software Network	cell: +36 70 3144424




More information about the MPlayer-cvslog mailing list