fixed bug where writeSize could be zero
This commit is contained in:
1 parent
a19916425d
commit
82e488770c
1 file changed
+1
-1
@@ -548,7 +548,7 @@ static void* outputThread(void* arg)
|
||||
}
|
||||
{
|
||||
// size_t const writeSize = fwrite(job->dst.start, 1, compressedSize, dstFile);
|
||||
size_t const blockSize = compressedSize >> 7;
|
||||
size_t const blockSize = MAX(compressedSize >> 7, 64 << 10);
|
||||
size_t pos = 0;
|
||||
for ( ; ; ) {
|
||||
size_t const writeSize = MIN(remaining, blockSize);
|
||||
|
||||
Reference in new issue
Block a user