[xiph-commits] r11138 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Thu Apr 13 22:00:46 PDT 2006


Author: jm
Date: 2006-04-13 22:00:44 -0700 (Thu, 13 Apr 2006)
New Revision: 11138

Modified:
   trunk/speex/libspeex/mdf.c
Log:
comments only


Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c	2006-04-14 04:46:33 UTC (rev 11137)
+++ trunk/speex/libspeex/mdf.c	2006-04-14 05:00:44 UTC (rev 11138)
@@ -583,8 +583,9 @@
       st->Pey = FLOAT_MULT(MIN_LEAK,st->Pyy);
    if (FLOAT_GT(st->Pey, st->Pyy))
       st->Pey = st->Pyy;
-   /* leak_estimate is the limear regression result */
+   /* leak_estimate is the linear regression result */
    leak_estimate = FLOAT_EXTRACT16(FLOAT_SHL(FLOAT_DIVU(st->Pey, st->Pyy),14));
+   /* This looks like a stupid bug, but it's right (because we convert from Q14 to Q15) */
    if (leak_estimate > 16383)
       leak_estimate = 32767;
    else



More information about the commits mailing list