From 9c868219e91c65f84ccbf6881848a263975a8d9e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 18 Jan 2009 23:04:33 +0000 Subject: 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 --- libavcodec/cook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/cook.c') 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; -- cgit v1.2.3