update missing error case to CONTENTSIZE_ERROR

dev
shakeelrao 2019-03-01 00:12:16 -08:00
parent 44ae395b3e
commit 2bb5eec711
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ static ZSTD_frameSizeInfo ZSTD_findFrameSizeInfo(const void* src, size_t srcSize
size_t const ret = ZSTD_getFrameHeader(&zfh, src, srcSize);
if (ZSTD_isError(ret)) {
frameSizeInfo.compressedSize = ret;
frameSizeInfo.decompressedBound = ret;
frameSizeInfo.decompressedBound = ZSTD_CONTENTSIZE_ERROR;
return frameSizeInfo;
}
if (ret > 0) {