mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
1000l typo my new PRNG converged to -1.
Originally committed as revision 14479 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ static inline unsigned int av_lfg_get(AVLFG *c){
|
|||||||
static inline unsigned int av_mlfg_get(AVLFG *c){
|
static inline unsigned int av_mlfg_get(AVLFG *c){
|
||||||
unsigned int a= c->state[(c->index-55) & 63];
|
unsigned int a= c->state[(c->index-55) & 63];
|
||||||
unsigned int b= c->state[(c->index-24) & 63];
|
unsigned int b= c->state[(c->index-24) & 63];
|
||||||
return c->state[c->index++ & 63] = a*b+a+b;
|
return c->state[c->index++ & 63] = 2*a*b+a+b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //FFMPEG_LFG_H
|
#endif //FFMPEG_LFG_H
|
||||||
|
|||||||
Reference in New Issue
Block a user