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.

Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö
2010-05-23 08:53:40 +00:00
parent e1745e2f6e
commit 576fb48e6d
8 changed files with 18 additions and 8 deletions

View File

@@ -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 @@ uint32_t ff_random_get_seed(void)
// 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