ref: 168888f7a3c2892fecd90ee534a3404bd5ccf988
parent: 6c8acbf1f2185d2e362df120131ed05d7c6556d3
author: Jean-Marc Valin <[email protected]>
date: Wed Mar 2 12:26:48 EST 2011
A float variable and a bug left in transient_analysis()
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -317,9 +317,9 @@
for (i=0;i<N;i++)
{
int j;
- float max_abs=0;
+ celt_word16 max_abs=0;
for (j=0;j<block;j++)
- max_abs = MAX32(max_abs, tmp[i*block+j]);
+ max_abs = MAX16(max_abs, ABS16(tmp[i*block+j]));
bins[i] = max_abs;
}
for (i=0;i<N;i++)