summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-21 23:57:39 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-21 23:57:39 (GMT)
commitb05d3d71a6ae2a0f711dfa0a046b8b0095978045 (patch)
tree219ce6d37cd0dd4f62ac8b911197381fc120296f
parentb805d581b97be95fcc000134a54aa7c591b3ef09 (diff)
downloadlz4-b05d3d71a6ae2a0f711dfa0a046b8b0095978045.zip
lz4-b05d3d71a6ae2a0f711dfa0a046b8b0095978045.tar.gz
lz4-b05d3d71a6ae2a0f711dfa0a046b8b0095978045.tar.bz2
Frame content size disabled by default when using LZ4F_compressFrame(), to be in better coherence with the advanced API LZ4F_compress_update()
-rw-r--r--lib/lz4frame.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index a2b6a22..8f82f6c 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -301,7 +301,6 @@ size_t LZ4F_compressFrame(void* dstBuffer, size_t dstMaxSize, const void* srcBuf
else
{
memset(&prefs, 0, sizeof(prefs));
- prefs.frameInfo.contentSize = (U64)srcSize;
}
if (prefs.frameInfo.contentSize != 0)
prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */