]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Describe ambiguity around skippable frames 560/head
authorSean Purcell <me@seanp.xyz>
Wed, 22 Feb 2017 21:29:01 +0000 (13:29 -0800)
committerSean Purcell <me@seanp.xyz>
Wed, 22 Feb 2017 21:29:01 +0000 (13:29 -0800)
lib/zstd.h

index 49050607e4c3870f66b0f4fa701aa51822d8d528..e597c5db5021dc660e02439bf992838f8dfc1f95 100644 (file)
@@ -700,6 +700,9 @@ ZSTDLIB_API size_t ZSTD_compressEnd(ZSTD_CCtx* cctx, void* dst, size_t dstCapaci
   c) Frame Content - any content (User Data) of length equal to Frame Size
   For skippable frames ZSTD_decompressContinue() always returns 0.
   For skippable frames ZSTD_getFrameParams() returns fparamsPtr->windowLog==0 what means that a frame is skippable.
+    Note : If fparamsPtr->frameContentSize==0, it is ambiguous: the frame might actually be a Zstd encoded frame with no content.
+           For purposes of decompression, it is valid in both cases to skip the frame using
+           ZSTD_findFrameCompressedSize to find its size in bytes.
   It also returns Frame Size as fparamsPtr->frameContentSize.
 */