summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/ac3.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h
index ff36249045..747f2f561d 100644
--- a/libavcodec/ac3.h
+++ b/libavcodec/ac3.h
@@ -97,13 +97,13 @@ typedef float SHORTFLOAT;
#endif /* USE_FIXED */
-#define AC3_LEVEL(x) ROUND15((x) * FIXR15(0.7071067811865476))
+#define AC3_LEVEL(x) ROUND15((x) * FIXR15(M_SQRT1_2))
/* pre-defined gain values */
-#define LEVEL_PLUS_3DB 1.4142135623730950
+#define LEVEL_PLUS_3DB M_SQRT2
#define LEVEL_PLUS_1POINT5DB 1.1892071150027209
#define LEVEL_MINUS_1POINT5DB 0.8408964152537145
-#define LEVEL_MINUS_3DB 0.7071067811865476
+#define LEVEL_MINUS_3DB M_SQRT1_2
#define LEVEL_MINUS_4POINT5DB 0.5946035575013605
#define LEVEL_MINUS_6DB 0.5000000000000000
#define LEVEL_MINUS_9DB 0.3535533905932738