[Speex-dev] Speex FIXED_POINT bug

Eugene Leviant evgeny.leviant at gmail.com
Wed Apr 7 05:22:13 PDT 2010

I found out that sometimes division by zero exception can occur in libspeex
if it is compiled with FIXED_POINT macro.
This happens in lpc.c:94, the following line of code
<speex-dev at xiph.org>
r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8));

It happens rarely only on machine with no microphone attached (so
practically constant input signal),
application crashes after about a minute of encoding.

Platform: WinXP SP3, VS2005 SP1, Speex compiled with Full Optimization

Does anybody have an idea how to fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100407/8b130231/attachment.htm 

More information about the Speex-dev mailing list