[FFmpeg-devel] [PATCH] get rid of rand() usage in libavformat/timefilter.c

Diego Biurrun diego
Fri Apr 10 19:14:30 CEST 2009


On Fri, Apr 10, 2009 at 06:54:08PM +0200, Michael Niedermayer wrote:
> On Fri, Apr 10, 2009 at 05:49:45PM +0200, Diego Biurrun wrote:
> > On Fri, Apr 10, 2009 at 05:41:47PM +0200, Reimar D?ffinger wrote:
> > > On Fri, Apr 10, 2009 at 05:10:57PM +0200, Diego Biurrun wrote:
> [...]
> > > > +
> > > >  int main(void)
> > > >  {
> > > > +    AVLFG prn;
> > > 
> > > prn seems a bit badly chosen. prng would be the usual abbreviation.
> > 
> > Why?  It is a Pseudo Random Number, not a Pseudo Random Number
> > Generator..
> 
> prn is a number?

Hmm, you are right, renamed.

> > The output of the program still changes, is this a problem?
> 
> probably not, the stuff is quite sensitive to the first value IIRC ...

Patch applied.

Diego



More information about the ffmpeg-devel mailing list