Commit 85123da9 authored by mru's avatar mru

cook: use constant seed for dithering RNG

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20657 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 44de254d
...@@ -1101,7 +1101,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) ...@@ -1101,7 +1101,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
q->bit_rate = avctx->bit_rate; q->bit_rate = avctx->bit_rate;
/* Initialize RNG. */ /* 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){ while(edata_ptr < edata_ptr_end){
/* 8 for mono, 16 for stereo, ? for multichannel /* 8 for mono, 16 for stereo, ? for multichannel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment