Commit c5eba7b3 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry Committed by Jean-Marc Valin
Browse files

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.
parent 6c87ba6c
......@@ -138,7 +138,7 @@ void ec_enc_done(ec_enc *_this){
}
}
/*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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment