From 382ab797cfdb405b0a634629e926cee8590c99c2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 21 Jul 2016 19:48:55 -0400 Subject: saturate MDCT output --- celt/arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'celt/arch.h') diff --git a/celt/arch.h b/celt/arch.h index 05e434b9..1615af39 100644 --- a/celt/arch.h +++ b/celt/arch.h @@ -101,6 +101,9 @@ typedef opus_val32 celt_ener; #define Q15ONE 32767 #define SIG_SHIFT 12 +/* Safe saturation value for 32-bit signals. Should be less than + 2^31*(1-0.85) to avoid blowing up on DC at deemphasis.*/ +#define SIG_SAT (300000000) #define NORM_SCALING 16384 -- cgit v1.2.3