]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove all remaining code that was disabled through the major version bump.
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 9 Mar 2009 10:24:47 +0000 (10:24 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 9 Mar 2009 10:24:47 +0000 (10:24 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17903 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/log.h
libavutil/mathematics.c
libavutil/random.c
libavutil/random.h

index a886844d9b03a92ef31d6e34fffbc58f6baa4586..1206a2fc3866fd831063150f7a0362bc9c0a49d1 100644 (file)
@@ -53,15 +53,6 @@ struct AVCLASS {
 
 /* av_log API */
 
-#if LIBAVUTIL_VERSION_INT < (50<<16)
-#define AV_LOG_QUIET -1
-#define AV_LOG_FATAL 0
-#define AV_LOG_ERROR 0
-#define AV_LOG_WARNING 1
-#define AV_LOG_INFO 1
-#define AV_LOG_VERBOSE 1
-#define AV_LOG_DEBUG 2
-#else
 #define AV_LOG_QUIET    -8
 
 /**
@@ -95,11 +86,6 @@ struct AVCLASS {
  * Stuff which is only useful for libav* developers.
  */
 #define AV_LOG_DEBUG    48
-#endif
-
-#if LIBAVUTIL_VERSION_INT < (50<<16)
-extern int av_log_level;
-#endif
 
 /**
  * Sends the specified message to the log if the level is less than or equal
index ff488a70ef7c75b6d60114896cf6ca27ca616f63..f57cf8e4b618900c8e9ffde25f3ca1329c8d4405 100644 (file)
@@ -55,12 +55,6 @@ int64_t av_gcd(int64_t a, int64_t b){
     else  return a;
 }
 
-#if LIBAVUTIL_VERSION_MAJOR < 50
-int64_t ff_gcd(int64_t a, int64_t b){
-    return av_gcd(a, b);
-}
-#endif
-
 int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
     int64_t r=0;
     assert(c > 0);
index 5597e1d1c091871ba2a87d5b7e0196f208481b22..94671556fcb68e03fa19f3565ff3c8983ae0aa88 100644 (file)
@@ -56,13 +56,6 @@ void av_random_init(AVRandomState *state, unsigned int seed)
     state->index= index; // Will cause it to generate untempered numbers in the first iteration.
 }
 
-#if LIBAVUTIL_VERSION_MAJOR < 50
-void av_init_random(unsigned int seed, AVRandomState *state)
-{
-    av_random_init(state, seed);
-}
-#endif
-
 /** Generates 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)
index 90378822b2777019bdef40bef218dac260d46021..ed4c0ac84dca5934d93a1935da3247eb36095449 100644 (file)
@@ -35,9 +35,6 @@ typedef struct {
 } AVRandomState;
 
 
-#if LIBAVUTIL_VERSION_MAJOR < 50
-attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state);
-#endif
 attribute_deprecated 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.
 attribute_deprecated void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).