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

Rich Felker dalias at aerifal.cx
Tue Apr 4 06:41:04 CEST 2006


On Mon, Apr 03, 2006 at 08:52:27PM +0200, Alex Beregszaszi wrote:
> 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...

No. All uninitialized data is zero. This is guaranteed by C and true
on every single implementation. If you don't know C that's your
problem. Explicit initialization just adds 4 bytes to the data segment
for no reason.

Rich




More information about the MPlayer-cvslog mailing list