Skip to content

Commit 4fb79fc

Browse files
committed
Tweak test max transform size
1 parent 83050cc commit 4fb79fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/io/CompressedInputStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ T DecodingTask<T>::run()
849849
const int length = dataSize << 3;
850850
const uint64 mask = (uint64(1) << length) - 1;
851851
const int preTransformLength = int(ibs->readBits(length) & mask);
852-
const int maxTransformSize = min(max(2 * _blockLength, 1024), CompressedInputStream::MAX_BITSTREAM_BLOCK_SIZE);
852+
const int maxTransformSize = min(max(_blockLength + _blockLength / 2, 2048), CompressedInputStream::MAX_BITSTREAM_BLOCK_SIZE);
853853

854854
if ((preTransformLength <= 0) || (preTransformLength > maxTransformSize)) {
855855
// Error => cancel concurrent decoding tasks

src/io/CompressedOutputStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ T EncodingTask<T>::run()
793793
_obs->writeBits(written, lw);
794794

795795
// Emit data to shared bitstream
796-
for (int n = 0; written > 0; ) {
796+
for (uint n = 0; written > 0; ) {
797797
uint chkSize = uint(min(written, uint64(1) << 30));
798798
_obs->writeBits(&_data->_array[n], chkSize);
799799
n += ((chkSize + 7) >> 3);

0 commit comments

Comments
 (0)