From 722e14bb654ebe34bf2c736f009e0ac81c5aba72 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 8 Jul 2016 19:22:16 +0200 Subject: [PATCH] fixed compilation error in decompression module --- lib/decompress/zstd_decompress.c | 2 +- zstd_compression_format.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 42acd0d6a..2645342c7 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1352,7 +1352,7 @@ ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) { #if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT==1) - if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dictContent, ddict->dictContentSize); + if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dict, ddict->dictSize); #endif return ZSTD_decompress_usingPreparedDCtx(dctx, ddict->refContext, dst, dstCapacity, diff --git a/zstd_compression_format.md b/zstd_compression_format.md index 0db184cc3..9f2227406 100644 --- a/zstd_compression_format.md +++ b/zstd_compression_format.md @@ -1135,17 +1135,17 @@ __Header__ : 4 bytes ID, value 0xEC30A437, Little Endian format __Dict_ID__ : 4 bytes, stored in Little Endian format. DictID can be any value, except 0 (which means no DictID). - It's used by decoders to check they use the correct dictionary. + It's used by decoders to check if they use the correct dictionary. __Stats__ : Entropy tables, following the same format as a [compressed blocks]. They are stored in following order : Huffman tables for literals, FSE table for offset, - FSE table for matchLenth, and finally FSE table for litLength. - It's then followed by 3 offset values, populating recent offsets, - stored in order 4-bytes little endian each, for a total of 12 bytes. + FSE table for matchLenth, and FSE table for litLength. + It's finally followed by 3 offset values, populating recent offsets, + stored in order, 4-bytes little endian each, for a total of 12 bytes. __Content__ : Where the actual dictionary content is. - Content depends on Dictionary size. + Content size depends on Dictionary size. [compressed blocks]: #compressed-block-format -- 2.47.2