ref: 0619d0848520ce2cd45ec3c9fc3a2c9743b4608e
parent: 9f2a0c70d40442f3f05a575c4ea3e9eb1051a195
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Tue Feb 12 11:13:04 EST 2019
Avoiding problems with x87 logE[b] can end up slightly larger than tonal->highE[b] due to rounding
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -654,7 +654,7 @@
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++)