diff --git a/C/zstdmt/lz4-mt_decompress.c b/C/zstdmt/lz4-mt_decompress.c index 429357b8..b40ba77d 100644 --- a/C/zstdmt/lz4-mt_decompress.c +++ b/C/zstdmt/lz4-mt_decompress.c @@ -469,8 +469,12 @@ static size_t st_decompress(void *arg) } } - if (nextToLoad == 0) + // if (nextToLoad == 0) + // break; + if (out->size == 0 && remaining ==0){ + nextToLoad = ctx->inputsize; break; + } pos += remaining; }