diff random_seed.c @ 925:1ff442f2660c libavutil

Make ff_random_get_seed public, rename to av_get_random_seed, export the header Keep an old ff_ named function for binary compatibility until the next major bump.
author mstorsjo
date Sun, 23 May 2010 08:53:40 +0000
parents 0cf8e33624d0
children 2894d4c208dc
line wrap: on
line diff
--- a/random_seed.c	Wed May 19 22:51:38 2010 +0000
+++ b/random_seed.c	Sun May 23 08:53:40 2010 +0000
@@ -22,8 +22,9 @@
 #include <fcntl.h>
 #include "timer.h"
 #include "random_seed.h"
+#include "avutil.h"
 
-uint32_t ff_random_get_seed(void)
+uint32_t av_get_random_seed(void)
 {
     uint32_t seed;
     int fd;
@@ -42,3 +43,11 @@
     // XXX what to do ?
     return seed;
 }
+
+#if LIBAVUTIL_VERSION_MAJOR < 51
+attribute_deprecated uint32_t ff_random_get_seed(void);
+uint32_t ff_random_get_seed(void)
+{
+    return av_get_random_seed();
+}
+#endif