Commit 22c1c0ab authored by Hal Finkel's avatar Hal Finkel
Browse files

Allow Blosc to increase the size over the sz output (only a little bit, hopefully)

parent 1aa7cbe7
......@@ -608,10 +608,11 @@ nosz:
}
#endif
LocalCData[i].resize(LocalCData[i].size() + OrigDataSize);
size_t RealOrigDataSize = NElems*Vars[i].Size;
LocalCData[i].resize(LocalCData[i].size() + RealOrigDataSize);
if (blosc_compress(9, 1, OrigUnitSize, OrigDataSize, OrigData,
&LocalCData[i][0] + sizeof(CompressHeader<IsBigEndian>),
OrigDataSize) <= 0) {
RealOrigDataSize) <= 0) {
if (FreeOrigData)
free(OrigData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment