Re: Thusnelda - Floating point exception in encoder_toplevel.c:209

"Timothy B. Terriberry" <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
Philip Heron wrote:
> Any ideas?

My guess is that you're running out of bits in the buffer, and
rate_total is greater than zero, but less than buf_delay (e.g., less
than 1 bit per frame). This one is clearly my fault, try the following
patch, and let me know if it fixes the problem:

--- encoder_toplevel.c  (revision 16089)
+++ encoder_toplevel.c  (working copy)
@@ -177,7 +177,7 @@

if(cpi->dup_count>0)nframes[1]=(nframes[1]+cpi->dup_count)/(cpi->dup_count+1);
   /*If there aren't enough bits to achieve our desired fullness level,
use the
      minimum quality permitted.*/
-  if(rate_total<=0)log_qtarget=OC_QUANT_MAX_LOG;
+  if(rate_total<=buf_delay)log_qtarget=OC_QUANT_MAX_LOG;
   else{
     static const unsigned char KEY_RATIO[2]={32,17};
     ogg_int64_t   log_scale0;

I know it's difficult to collect, but a test case that can reliably
reproduce this would be enormously helpful.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.