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

Fix flushing the final byte in the face of nothing but carry propagation.

parent 583a14ac
......@@ -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){
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