Skip to content

Commit

Permalink
Merge pull request mcmilk#158 from jinfeihan57/Bug#141
Browse files Browse the repository at this point in the history
fix Bug mcmilk#141
  • Loading branch information
mcmilk authored Dec 6, 2020
2 parents 8672122 + fefe4be commit 5409f5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CPP/7zip/Compress/ZstdEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ STDMETHODIMP CEncoder::Code(ISequentialInStream *inStream,
ZSTD_inBuffer inBuff;
size_t err, srcSize;

_processedIn = 0;
_processedOut = 0;

if (!_ctx) {
_ctx = ZSTD_createCCtx();
if (!_ctx)
Expand Down

0 comments on commit 5409f5d

Please sign in to comment.