original size unknown
This commit is contained in:
parent
3b89eb0c20
commit
6e18d33122
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user