[SCM] libav/experimental: nellymoser: use constant seed for dithering RNG

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:08 UTC 2013


The following commit has been merged in the experimental branch:
commit b8cef7be5c6bb2150d82ac64f00adfd2093cc913
Author: Måns Rullgård <mans at mansr.com>
Date:   Sun Nov 29 15:15:53 2009 +0000

    nellymoser: use constant seed for dithering RNG
    
    Originally committed as revision 20658 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 1de4708..8ed4298 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -129,7 +129,7 @@ static av_cold int decode_init(AVCodecContext * avctx) {
     NellyMoserDecodeContext *s = avctx->priv_data;
 
     s->avctx = avctx;
-    av_lfg_init(&s->random_state, ff_random_get_seed());
+    av_lfg_init(&s->random_state, 0);
     ff_mdct_init(&s->imdct_ctx, 8, 1, 1.0);
 
     dsputil_init(&s->dsp, avctx);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list