Mercurial > libavcodec.hg
comparison mpc7.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 |
---|---|
51 if(avctx->extradata_size < 16){ | 51 if(avctx->extradata_size < 16){ |
52 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); | 52 av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size); |
53 return -1; | 53 return -1; |
54 } | 54 } |
55 memset(c->oldDSCF, 0, sizeof(c->oldDSCF)); | 55 memset(c->oldDSCF, 0, sizeof(c->oldDSCF)); |
56 av_init_random(0xDEADBEEF, &c->rnd); | 56 av_random_init(&c->rnd, 0xDEADBEEF); |
57 dsputil_init(&c->dsp, avctx); | 57 dsputil_init(&c->dsp, avctx); |
58 c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4); | 58 c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4); |
59 ff_mpc_init(); | 59 ff_mpc_init(); |
60 init_get_bits(&gb, buf, 128); | 60 init_get_bits(&gb, buf, 128); |
61 | 61 |