[vorbis-dev] Divide by zero in accumulate_fit

Monty xiphmont at xiph.org
Mon Jul 8 23:23:51 PDT 2002



On Mon, Jul 08, 2002 at 10:31:03PM -0700, David K. Gasaway wrote:
> 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?

Yes, I can fix this.

Monty

--- >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