summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-26 15:05:59 +0200
committerwm4 <wm4@nowhere>2013-10-26 15:05:59 +0200
commit7abc1bef40869d4efba88df8c5ad8b1ea4c49c57 (patch)
treeed1ef6c259c01dc119c4b99f84daefef5161bd93 /audio/filter/af.h
parent74e7043cc756e171ea1a7fd4be01019c14e1e265 (diff)
downloadmpv-7abc1bef40869d4efba88df8c5ad8b1ea4c49c57.tar.bz2
mpv-7abc1bef40869d4efba88df8c5ad8b1ea4c49c57.tar.xz
af: replace macros with too generic names
Defining names like min, max etc. in an often used header is not really a good idea. Somewhat similar to MPlayer svn commit 36491, but don't use libavutil, because that typically causes us sorrow.
Diffstat (limited to 'audio/filter/af.h')
-rw-r--r--audio/filter/af.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index 088e02dc6a..dc776460aa 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -263,25 +263,4 @@ float af_softclip(float a);
#define RESIZE_LOCAL_BUFFER(a, d) \
((a->data->len < af_lencalc(a->mul, d)) ? af_resize_local_buffer(a, d) : AF_OK)
-/* Some other useful macro definitions*/
-#ifndef min
-#define min(a, b)(((a) > (b)) ? (b) : (a))
-#endif
-
-#ifndef max
-#define max(a, b)(((a) > (b)) ? (a) : (b))
-#endif
-
-#ifndef clamp
-#define clamp(a, min, max) (((a) > (max)) ? (max) : (((a) < (min)) ? (min) : (a)))
-#endif
-
-#ifndef sign
-#define sign(a) (((a) > 0) ? (1) : (-1))
-#endif
-
-#ifndef lrnd
-#define lrnd(a, b) ((b)((a) >= 0.0 ? (a) + 0.5 : (a) - 0.5))
-#endif
-
#endif /* MPLAYER_AF_H */