1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

original size unknown

This commit is contained in:
Soojin Nam
2017-02-21 09:51:40 +09:00
parent 3b89eb0c20
commit 6e18d33122
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ static void decompress(const char* fname)
size_t cSize;
void* const cBuff = loadFile_orDie(fname, &cSize);
unsigned long long const rSize = ZSTD_findDecompressedSize(cBuff, cSize);
if (rSize==0) {
if (rSize==ZSTD_CONTENTSIZE_UNKNOWN) {
printf("%s : original size unknown. Use streaming decompression instead. \n", fname);
exit(5);
}