summaryrefslogtreecommitdiff
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
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;