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

This commit is contained in:
Timothy B. Terriberry 2008-02-19 03:29:32 -05:00 committed by Jean-Marc Valin
parent 583a14ac96
commit 6c87ba6c1b

View file

@ -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;
}