ref: c5eba7b3ec8478ea9f1d6c18a89e34620260ba0a
parent: 6c87ba6c1bea0ec120facdc0e20b163775f7e4c9
author: Timothy B. Terriberry <[email protected]>
date: Mon Feb 18 23:39:00 EST 2008
Don't flush the last buffered symbol if it is zero. When rng starts out 0x80000000, this can cause an extra zero byte to be written to the stream.
--- 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||_this->ext>0){
+ if(_this->rem>0||_this->ext>0){
ec_enc_carry_out(_this,0);
_this->rem=-1;
}