From cf89d2a60cfed1b30a377340637ef1ae1b9d83b1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 10 Feb 2011 10:50:26 -0500 Subject: Adding a tiny amount of noise when folding to prevent/reduce numerical issues --- libcelt/bands.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libcelt/bands.c b/libcelt/bands.c index e7997f9..1c8fe25 100644 --- a/libcelt/bands.c +++ b/libcelt/bands.c @@ -1084,7 +1084,14 @@ static unsigned quant_band(int encode, const CELTMode *m, int i, celt_norm *X, c } else { /* Folded spectrum */ for (j=0;j