[FFmpeg-cvslog] r14479 - trunk/libavutil/lfg.h

michael subversion
Thu Jul 31 01:17:41 CEST 2008


Author: michael
Date: Thu Jul 31 01:17:41 2008
New Revision: 14479

Log:
1000l typo my new PRNG converged to -1.


Modified:
   trunk/libavutil/lfg.h

Modified: trunk/libavutil/lfg.h
==============================================================================
--- trunk/libavutil/lfg.h	(original)
+++ trunk/libavutil/lfg.h	Thu Jul 31 01:17:41 2008
@@ -48,7 +48,7 @@ static inline unsigned int av_lfg_get(AV
 static inline unsigned int av_mlfg_get(AVLFG *c){
     unsigned int a= c->state[(c->index-55) & 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




More information about the ffmpeg-cvslog mailing list