Mercurial > libavcodec.hg
comparison nellymoserdec.c @ 8628:e49a2e1f0020 libavcodec
Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init().
author | stefano |
---|---|
date | Sun, 18 Jan 2009 23:04:33 +0000 |
parents | ff10b38304d2 |
children | e9d9d946f213 |
comparison
equal
deleted
inserted
replaced
8627:d6bab465b82c | 8628:e49a2e1f0020 |
---|---|
126 | 126 |
127 static av_cold int decode_init(AVCodecContext * avctx) { | 127 static av_cold int decode_init(AVCodecContext * avctx) { |
128 NellyMoserDecodeContext *s = avctx->priv_data; | 128 NellyMoserDecodeContext *s = avctx->priv_data; |
129 | 129 |
130 s->avctx = avctx; | 130 s->avctx = avctx; |
131 av_init_random(0, &s->random_state); | 131 av_random_init(&s->random_state, 0); |
132 ff_mdct_init(&s->imdct_ctx, 8, 1); | 132 ff_mdct_init(&s->imdct_ctx, 8, 1); |
133 | 133 |
134 dsputil_init(&s->dsp, avctx); | 134 dsputil_init(&s->dsp, avctx); |
135 | 135 |
136 if(s->dsp.float_to_int16 == ff_float_to_int16_c) { | 136 if(s->dsp.float_to_int16 == ff_float_to_int16_c) { |