fixed multi frames

dev
Yann Collet 2017-02-28 02:12:42 -08:00
parent a33ae64204
commit 22d79762ef
1 changed files with 2 additions and 1 deletions

View File

@ -2307,8 +2307,9 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
if (cSize <= (size_t)(iend-istart)) { if (cSize <= (size_t)(iend-istart)) {
size_t const decompressedSize = ZSTD_decompress_usingDDict(zds->dctx, op, oend-op, istart, cSize, zds->ddict); size_t const decompressedSize = ZSTD_decompress_usingDDict(zds->dctx, op, oend-op, istart, cSize, zds->ddict);
if (ZSTD_isError(decompressedSize)) return decompressedSize; if (ZSTD_isError(decompressedSize)) return decompressedSize;
ip += cSize; ip = istart + cSize;
op += decompressedSize; op += decompressedSize;
zds->dctx->expected = 0;
zds->stage = zdss_init; zds->stage = zdss_init;
someMoreWork = 0; someMoreWork = 0;
break; break;