diff options
author | Alexander Mohr <alexander.m.mohr@mercedes-benz.com> | 2022-10-10 16:03:35 (GMT) |
---|---|---|
committer | Alexander Mohr <alexander.m.mohr@mercedes-benz.com> | 2022-10-10 17:16:51 (GMT) |
commit | 7213a321add14eef2b7317d823d90b1709a2effc (patch) | |
tree | c82e1dc8adf2c28cfb019741e635451dbe45e4e2 /lib | |
parent | e312412c60140b3d061526499cef22e5e99d7751 (diff) | |
download | lz4-7213a321add14eef2b7317d823d90b1709a2effc.zip lz4-7213a321add14eef2b7317d823d90b1709a2effc.tar.gz lz4-7213a321add14eef2b7317d823d90b1709a2effc.tar.bz2 |
uncompressed-blocks: Allow uncompressed blocks for all modes
this commit changes that uncompressed blocks are only available
for independent blocks.
Building and updating the dictionary from an uncompressed block
has no adverse side effects.
Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index d1cc5f0..fde0c37 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -1085,7 +1085,6 @@ size_t LZ4F_uncompressedUpdate(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr) { - RETURN_ERROR_IF(cctxPtr->prefs.frameInfo.blockMode != LZ4F_blockIndependent, blockMode_invalid); return LZ4F_compressUpdateImpl(cctxPtr, dstBuffer, dstCapacity, srcBuffer, srcSize, |