summaryrefslogtreecommitdiff
path: root/libavutil/random.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 23:07:30 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 23:07:30 +0000
commit796dff07de606bae25815a615932d162b708169d (patch)
treedc406cc2f6e182286545dee71b39852c1cd4085b /libavutil/random.h
parent9c868219e91c65f84ccbf6881848a263975a8d9e (diff)
Drop the deprecated av_init_random() at the next libavutil major bump.
Originally committed as revision 16683 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/random.h')
-rw-r--r--libavutil/random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/random.h b/libavutil/random.h
index 0bedcd5831..d9991c0ee5 100644
--- a/libavutil/random.h
+++ b/libavutil/random.h
@@ -26,6 +26,7 @@
#define AV_RANDOM_N 624
+#include "avutil.h"
#include "common.h"
typedef struct {
@@ -34,7 +35,9 @@ typedef struct {
} AVRandomState;
+#if LIBAVUTIL_VERSION_MAJOR < 50
attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state);
+#endif
void av_random_init(AVRandomState *state, unsigned int seed); ///< To be inlined, the struct must be visible. So it does not make sense to try and keep it opaque with malloc/free-like calls.
void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).