comparison nellymoserdec.c @ 10598:5e566408864c libavcodec

nellymoser: use constant seed for dithering RNG
author mru
date Sun, 29 Nov 2009 15:15:53 +0000
parents 38ab367d4231
children 3d011a01a6a0
comparison
equal deleted inserted replaced
10597:4dac6529ee0c 10598:5e566408864c
127 127
128 static av_cold int decode_init(AVCodecContext * avctx) { 128 static av_cold int decode_init(AVCodecContext * avctx) {
129 NellyMoserDecodeContext *s = avctx->priv_data; 129 NellyMoserDecodeContext *s = avctx->priv_data;
130 130
131 s->avctx = avctx; 131 s->avctx = avctx;
132 av_lfg_init(&s->random_state, ff_random_get_seed()); 132 av_lfg_init(&s->random_state, 0);
133 ff_mdct_init(&s->imdct_ctx, 8, 1, 1.0); 133 ff_mdct_init(&s->imdct_ctx, 8, 1, 1.0);
134 134
135 dsputil_init(&s->dsp, avctx); 135 dsputil_init(&s->dsp, avctx);
136 136
137 if(s->dsp.float_to_int16 == ff_float_to_int16_c) { 137 if(s->dsp.float_to_int16 == ff_float_to_int16_c) {