[xiph-commits] r16520 - trunk/theora/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Aug 26 05:31:38 PDT 2009


Author: xiphmont
Date: 2009-08-26 05:31:38 -0700 (Wed, 26 Aug 2009)
New Revision: 16520

Modified:
   trunk/theora/lib/decode.c
Log:
Correct a bug where the bit usage telemetry can freak out if the FPS 
ration consists of large integers



Modified: trunk/theora/lib/decode.c
===================================================================
--- trunk/theora/lib/decode.c	2009-08-26 06:03:50 UTC (rev 16519)
+++ trunk/theora/lib/decode.c	2009-08-26 12:31:38 UTC (rev 16520)
@@ -2713,7 +2713,7 @@
         fpsn=_dec->state.info.fps_numerator;
         fpsd=_dec->state.info.fps_denominator;
         mult=(_dec->telemetry_bits>=0xFF?1:_dec->telemetry_bits);
-        fullw=250*h*fpsd*mult/fpsn;
+        fullw=250.f*h*fpsd*mult/fpsn;
         padw=w-24;
         /*Header and coded block bits.*/
         if(_dec->telemetry_frame_bytes<0||



More information about the commits mailing list