]> git.sesse.net Git - ffmpeg/blobdiff - ffserver.c
'code' is used to index a table so make it unsigned
[ffmpeg] / ffserver.c
index 79d1e3ab72defe9cb2ff35e4f967c37a7c24cf0b..d2bdcc328e779065cf8d5e7adbb6d441c9f3d220 100644 (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;