aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 23:04:33 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 23:04:33 +0000
commit9c868219e91c65f84ccbf6881848a263975a8d9e (patch)
tree0d85f84a49745563b6cd91ca4ea6d6375c9803fc /libavcodec/cook.c
parent199436b952c198e14d53a389438e232ef60f1982 (diff)
downloadffmpeg-9c868219e91c65f84ccbf6881848a263975a8d9e.tar.gz
Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init(). Originally committed as revision 16682 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 1affe03e7c..98c0568e55 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1053,7 +1053,7 @@ static int cook_decode_init(AVCodecContext *avctx)
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;