[FFmpeg-devel] [PATCH 1/2] cook: use constant seed for dithering RNG

Mans Rullgard mans
Sun Nov 29 13:29:14 CET 2009


---
 libavcodec/cook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 1f62af2..6dec256 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1101,7 +1101,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
     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
-- 
1.6.5.2




More information about the ffmpeg-devel mailing list