[xiph-commits] r14528 - trunk/ghost/libentcode

tterribe at svn.xiph.org tterribe at svn.xiph.org
Tue Feb 19 01:45:07 PST 2008


Author: tterribe
Date: 2008-02-19 01:45:06 -0800 (Tue, 19 Feb 2008)
New Revision: 14528

Modified:
   trunk/ghost/libentcode/mfrngenc.c
   trunk/ghost/libentcode/rangeenc.c
Log:
Fix flushing the final byte in the face of nothing but carry propagation.


Modified: trunk/ghost/libentcode/mfrngenc.c
===================================================================
--- trunk/ghost/libentcode/mfrngenc.c	2008-02-19 08:52:34 UTC (rev 14527)
+++ trunk/ghost/libentcode/mfrngenc.c	2008-02-19 09:45:06 UTC (rev 14528)
@@ -168,7 +168,7 @@
     }
   }
   /*If we have a buffered byte...*/
-  if(_this->rem>=0){
+  if(_this->rem>=0||_this->ext>0){
     unsigned char *buf;
     long           i;
     /*Flush it into the output buffer.*/

Modified: trunk/ghost/libentcode/rangeenc.c
===================================================================
--- trunk/ghost/libentcode/rangeenc.c	2008-02-19 08:52:34 UTC (rev 14527)
+++ trunk/ghost/libentcode/rangeenc.c	2008-02-19 09:45:06 UTC (rev 14528)
@@ -138,7 +138,7 @@
     }
   }
   /*If we have a buffered byte...*/
-  if(_this->rem>=0){
+  if(_this->rem>=0||_this->ext>0){
     unsigned char *buf;
     long           i;
     /*Flush it into the output buffer.*/



More information about the commits mailing list