summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiotab.h
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-14 10:52:30 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-14 10:58:39 -0500
commit11f0acf829e26279c5f2a414c6860bd4933f29af (patch)
tree6b9bd171d1d7c4e97a3215c833c2e5970c7191b9 /libavcodec/mpegaudiotab.h
parentc5fa42c69aeccd644fb5a42b4995602d206f168b (diff)
avcodec/mpegaudio: use predefined M_SQRT2
M_SQRT2 is defined in math.h, or in avutil/mathematics.h for compatibility hacks. This uses this value instead of an ad-hoc define. Fixed point values produced by FIX() remain identical. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudiotab.h')
-rw-r--r--libavcodec/mpegaudiotab.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiotab.h b/libavcodec/mpegaudiotab.h
index 42d42d883d..bb2e5de4ea 100644
--- a/libavcodec/mpegaudiotab.h
+++ b/libavcodec/mpegaudiotab.h
@@ -33,8 +33,6 @@
#include <stdint.h>
#include "mpegaudio.h"
-#define SQRT2 1.41421356237309514547
-
static const int costab32[30] = {
FIX(0.54119610014619701222),
FIX(1.3065629648763763537),