Mercurial > libavcodec.hg
comparison cook.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 | ef9f95604644 |
children | e9d9d946f213 |
comparison
equal
deleted
inserted
replaced
8627:d6bab465b82c | 8628:e49a2e1f0020 |
---|---|
1051 q->sample_rate = avctx->sample_rate; | 1051 q->sample_rate = avctx->sample_rate; |
1052 q->nb_channels = avctx->channels; | 1052 q->nb_channels = avctx->channels; |
1053 q->bit_rate = avctx->bit_rate; | 1053 q->bit_rate = avctx->bit_rate; |
1054 | 1054 |
1055 /* Initialize RNG. */ | 1055 /* Initialize RNG. */ |
1056 av_init_random(1, &q->random_state); | 1056 av_random_init(&q->random_state, 1); |
1057 | 1057 |
1058 /* Initialize extradata related variables. */ | 1058 /* Initialize extradata related variables. */ |
1059 q->samples_per_channel = q->samples_per_frame / q->nb_channels; | 1059 q->samples_per_channel = q->samples_per_frame / q->nb_channels; |
1060 q->bits_per_subpacket = avctx->block_align * 8; | 1060 q->bits_per_subpacket = avctx->block_align * 8; |
1061 | 1061 |