Mercurial > libavutil.hg
changeset 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 | d45ace227adf |
children | c2a912cceb52 |
files | Makefile random_seed.c random_seed.h |
diffstat | 3 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed May 19 22:51:38 2010 +0000 +++ b/Makefile Sun May 23 08:53:40 2010 +0000 @@ -19,6 +19,7 @@ mem.h \ pixdesc.h \ pixfmt.h \ + random_seed.h \ rational.h \ sha1.h \
--- 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