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
This commit is contained in:
Stefano Sabatini
2009-01-18 23:04:33 +00:00
parent 199436b952
commit 9c868219e9
9 changed files with 9 additions and 9 deletions

View File

@ -4485,7 +4485,7 @@ int main(int argc, char **argv)
unsetenv("http_proxy"); /* Kill the http_proxy */
av_init_random(av_gettime() + (getpid() << 16), &random_state);
av_random_init(&random_state, av_gettime() + (getpid() << 16));
memset(&sigact, 0, sizeof(sigact));
sigact.sa_handler = handle_child_exit;