[FFmpeg-devel] [PATCH] swr: remove unused ONE define.
Clément Bœsch
ubitux at gmail.com
Wed Dec 5 20:29:36 CET 2012
---
libswresample/rematrix_template.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c
index a0d3fd1..b8ca901 100644
--- a/libswresample/rematrix_template.c
+++ b/libswresample/rematrix_template.c
@@ -19,21 +19,18 @@
*/
#if defined(TEMPLATE_REMATRIX_FLT)
-# define ONE (1.0)
# define R(x) x
# define SAMPLE float
# define COEFF float
# define INTER float
# define RENAME(x) x ## _float
#elif defined(TEMPLATE_REMATRIX_DBL)
-# define ONE (1.0)
# define R(x) x
# define SAMPLE double
# define COEFF double
# define INTER double
# define RENAME(x) x ## _double
#elif defined(TEMPLATE_REMATRIX_S16)
-# define ONE (-32768)
# define R(x) (((x) + 16384)>>15)
# define SAMPLE int16_t
# define COEFF int
@@ -96,7 +93,6 @@ static RENAME(mix_any_func_type) *RENAME(get_mix_any_func)(SwrContext *s){
return NULL;
}
-#undef ONE
#undef R
#undef SAMPLE
#undef COEFF
--
1.8.0.1
More information about the ffmpeg-devel
mailing list