[vorbis-dev] Divide by zero in accumulate_fit

David K. Gasaway dave at gasaway.org
Mon Jul 8 22:31:03 PDT 2002



Hi,

Lately, my oggenc builds (from CVS) haven't been running correctly.  In a few 
debugging sessions, I've found that I'm getting a divide by zero exception.  
The exception happens in accumulate_fit (floor1.c), line 455:
   int weight=nb*info->twofitweight/na;
Here is the call stack:
   accumulate_fit
   floot1_fit
   mapping0_forward
   vorbis_analysis
   oe_encode
   main
The error happens very early: the first call to vorbis_analysis (third iter. 
through the main encode loop) in oe_encode.  Reproducable with every wav I 
feed it.

Can anyone help?

<p>
--
-:-:- David K. Gasaway
-:-:- XNS  : =David K Gasaway
-:-:- Email: dave at gasaway.org
-:-:- Web  : dave.gasaway.org

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list