Mercurial > libavcodec.hg
comparison mpc8.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 | 9aac5b3cecbd |
children | e9d9d946f213 |
comparison
equal
deleted
inserted
replaced
8627:d6bab465b82c | 8628:e49a2e1f0020 |
---|---|
98 if(avctx->extradata_size < 2){ | 98 if(avctx->extradata_size < 2){ |
99 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); | 99 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); |
100 return -1; | 100 return -1; |
101 } | 101 } |
102 memset(c->oldDSCF, 0, sizeof(c->oldDSCF)); | 102 memset(c->oldDSCF, 0, sizeof(c->oldDSCF)); |
103 av_init_random(0xDEADBEEF, &c->rnd); | 103 av_random_init(&c->rnd, 0xDEADBEEF); |
104 dsputil_init(&c->dsp, avctx); | 104 dsputil_init(&c->dsp, avctx); |
105 | 105 |
106 ff_mpc_init(); | 106 ff_mpc_init(); |
107 | 107 |
108 init_get_bits(&gb, avctx->extradata, 16); | 108 init_get_bits(&gb, avctx->extradata, 16); |