diff --git a/src/XzStream.coffee b/src/XzStream.coffee index 747dc04..ba6abfc 100644 --- a/src/XzStream.coffee +++ b/src/XzStream.coffee @@ -166,7 +166,7 @@ class XzStream extends Transform @_offset = 0 @_buffer = new Buffer @_chunkSize - if availOutAfter is 0 + if availOutAfter is 0 or availInAfter > 0 inOff += (availInBefore - availInAfter) availInBefore = availInAfter