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

@ -78,7 +78,7 @@ static void decompress(const char* fname, const ZSTD_DDict* ddict)
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) {
fprintf(stderr, "%s : original size unknown \n", fname);
exit(6);
}

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);
}