aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
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 /libavutil
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 'libavutil')
-rw-r--r--libavutil/internal.h2
-rw-r--r--libavutil/random.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index ef1233d91c..2010e3008a 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -231,7 +231,7 @@ if((y)<(x)){\
#undef rand
#define rand rand_is_forbidden_due_to_state_trashing_use_av_random
#undef srand
-#define srand srand_is_forbidden_due_to_state_trashing_use_av_init_random
+#define srand srand_is_forbidden_due_to_state_trashing_use_av_random_init
#undef random
#define random random_is_forbidden_due_to_state_trashing_use_av_random
#undef sprintf
diff --git a/libavutil/random.c b/libavutil/random.c
index bafdf7a377..9b5d1123c3 100644
--- a/libavutil/random.c
+++ b/libavutil/random.c
@@ -88,7 +88,7 @@ int main(void)
int i, j;
AVRandomState state;
- av_init_random(0xdeadbeef, &state);
+ av_random_init(&state, 0xdeadbeef);
for (j = 0; j < 10000; j++) {
START_TIMER
for (i = 0; i < 624; i++) {