ref: 6c87ba6c1bea0ec120facdc0e20b163775f7e4c9
parent: 583a14ac9649eddc2e3c4a69115464d8e3a12f1a
author: Timothy B. Terriberry <[email protected]>
date: Mon Feb 18 22:29:32 EST 2008
Fix flushing the final byte in the face of nothing but carry propagation.
--- a/libcelt/rangeenc.c
+++ b/libcelt/rangeenc.c
@@ -138,7 +138,7 @@
}
}
/*If we have a buffered byte flush it into the output buffer.*/
- if(_this->rem>=0){
+ if(_this->rem>=0||_this->ext>0){
ec_enc_carry_out(_this,0);
_this->rem=-1;
}