diff cook.c @ 10597:4dac6529ee0c libavcodec

cook: use constant seed for dithering RNG
author mru
date Sun, 29 Nov 2009 15:15:50 +0000
parents 38ab367d4231
children 34a65026fa06
line wrap: on
line diff
--- a/cook.c	Sun Nov 29 14:31:40 2009 +0000
+++ b/cook.c	Sun Nov 29 15:15:50 2009 +0000
@@ -1101,7 +1101,7 @@
     q->bit_rate = avctx->bit_rate;
 
     /* Initialize RNG. */
-    av_lfg_init(&q->random_state, ff_random_get_seed());
+    av_lfg_init(&q->random_state, 0);
 
     while(edata_ptr < edata_ptr_end){
         /* 8 for mono, 16 for stereo, ? for multichannel