diff roqvideoenc.c @ 9154:aa459306ee59 libavcodec

Use FLG pseudo-random number generator in RoQ and ELBG
author vitor
date Sun, 08 Mar 2009 17:43:12 +0000
parents e9d9d946f213
children 12c8d0e11f39
line wrap: on
line diff
--- a/roqvideoenc.c	Sun Mar 08 16:37:57 2009 +0000
+++ b/roqvideoenc.c	Sun Mar 08 17:43:12 2009 +0000
@@ -929,7 +929,7 @@
 {
     RoqContext *enc = avctx->priv_data;
 
-    av_random_init(&enc->randctx, 1);
+    av_lfg_init(&enc->randctx, 1);
 
     enc->framesSinceKeyframe = 0;
     if ((avctx->width & 0xf) || (avctx->height & 0xf)) {