ZSTDMT_endStream : nullify input buffer after flush
There will be no more input after ZSTDMT_endStream invocation : only flush/end is allowed (to fully collect compressed result).
This commit is contained in:
@@ -543,6 +543,8 @@ static size_t ZSTDMT_flushStream_internal(ZSTDMT_CCtx* zcs, ZSTD_outBuffer* outp
|
|||||||
return ERROR(memory_allocation);
|
return ERROR(memory_allocation);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
zcs->inBuff.buffer = g_nullBuffer;
|
||||||
|
zcs->inBuff.filled = 0;
|
||||||
zcs->frameEnded = 1;
|
zcs->frameEnded = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user