Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2019-02-13 00:13:04 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2019-02-13 00:13:04 +0300
commit0619d0848520ce2cd45ec3c9fc3a2c9743b4608e (patch)
tree0fb136af327268babb161a21a074e3ecc836dc42 /src
parent9f2a0c70d40442f3f05a575c4ea3e9eb1051a195 (diff)
Avoiding problems with x87
logE[b] can end up slightly larger than tonal->highE[b] due to rounding
Diffstat (limited to 'src')
-rw-r--r--src/analysis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis.c b/src/analysis.c
index b192ae4e..23f6fa56 100644
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -654,7 +654,7 @@ static void tonality_analysis(TonalityAnalysisState *tonal, const CELTMode *celt
tonal->lowE[b] = logE[b];
tonal->highE[b] = MIN32(tonal->lowE[b]+15, tonal->highE[b]);
}
- relativeE += (logE[b]-tonal->lowE[b])/(1e-15f + (tonal->highE[b]-tonal->lowE[b]));
+ relativeE += (logE[b]-tonal->lowE[b])/(1e-5f + (tonal->highE[b]-tonal->lowE[b]));
L1=L2=0;
for (i=0;i<NB_FRAMES;i++)