[FFmpeg-cvslog] r16683 - in trunk/libavutil: random.c random.h

stefano subversion
Mon Jan 19 00:07:31 CET 2009


Author: stefano
Date: Mon Jan 19 00:07:30 2009
New Revision: 16683

Log:
Drop the deprecated av_init_random() at the next libavutil major bump.

Modified:
   trunk/libavutil/random.c
   trunk/libavutil/random.h

Modified: trunk/libavutil/random.c
==============================================================================
--- trunk/libavutil/random.c	Mon Jan 19 00:04:33 2009	(r16682)
+++ trunk/libavutil/random.c	Mon Jan 19 00:07:30 2009	(r16683)
@@ -55,10 +55,12 @@ void av_random_init(AVRandomState *state
     state->index= index; // will cause it to generate untempered numbers the first iteration
 }
 
+#if LIBAVUTIL_VERSION_MAJOR < 50
 void av_init_random(unsigned int seed, AVRandomState *state)
 {
     av_random_init(state, seed);
 }
+#endif
 
 /** generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't) */
 void av_random_generate_untempered_numbers(AVRandomState *state)

Modified: trunk/libavutil/random.h
==============================================================================
--- trunk/libavutil/random.h	Mon Jan 19 00:04:33 2009	(r16682)
+++ trunk/libavutil/random.h	Mon Jan 19 00:07:30 2009	(r16683)
@@ -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).
 




More information about the ffmpeg-cvslog mailing list