Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/cook.c Sun Jan 18 22:57:40 2009 +0000 +++ b/cook.c Sun Jan 18 23:04:33 2009 +0000 @@ -1053,7 +1053,7 @@ q->bit_rate = avctx->bit_rate; /* Initialize RNG. */ - av_init_random(1, &q->random_state); + av_random_init(&q->random_state, 1); /* Initialize extradata related variables. */ q->samples_per_channel = q->samples_per_frame / q->nb_channels;