summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-30 15:36:57 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-30 15:36:57 (GMT)
commiteeb8bea34c2df279307eaed922f3a89cc420316c (patch)
tree0f0cfb841eb0579d58077c5518255f2e517e2392 /lib/lz4frame.c
parent002ec60f0feadc07a25a6f18a7b2b4ace3c1b718 (diff)
downloadlz4-eeb8bea34c2df279307eaed922f3a89cc420316c.zip
lz4-eeb8bea34c2df279307eaed922f3a89cc420316c.tar.gz
lz4-eeb8bea34c2df279307eaed922f3a89cc420316c.tar.bz2
Updated comments on LZ4F_getFrameInfo()
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r--lib/lz4frame.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 5683eee..5f69c95 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -918,10 +918,10 @@ LZ4F_errorCode_t LZ4F_getFrameInfo(LZ4F_decompressionContext_t decompressionCont
if (dctxPtr->dStage == dstage_getHeader)
{
- LZ4F_errorCode_t errorCode = LZ4F_decodeHeader(dctxPtr, srcBuffer, *srcSizePtr);
- if (LZ4F_isError(errorCode)) return errorCode;
- *srcSizePtr = errorCode; /* nb Bytes consumed */
- *frameInfoPtr = dctxPtr->frameInfo;
+ size_t frameHeaderSize = LZ4F_decodeHeader(dctxPtr, srcBuffer, *srcSizePtr);
+ if (LZ4F_isError(frameHeaderSize)) return frameHeaderSize;
+ *srcSizePtr = frameHeaderSize; /* nb Bytes consumed */
+ *frameInfoPtr = dctxPtr->frameInfo; /* copy into */
dctxPtr->srcExpect = NULL;
return 4; /* nextSrcSizeHint : 4 == block header size */
}