diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-03-16 03:42:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 03:42:21 (GMT) |
commit | 844172a1e81fd614fa1efb32e2dcee469b740794 (patch) | |
tree | 9cfe0eb3c73bf034b2637c8782c066f8d7a7ff0f /src/H5Zdeflate.c | |
parent | 4320d92be6f2d4c945ebe2ce8d63a683d6642a96 (diff) | |
parent | 6d85ea26abea85935af45081e8ef9d6e2a659171 (diff) | |
download | hdf5-feature/new_datatypes.zip hdf5-feature/new_datatypes.tar.gz hdf5-feature/new_datatypes.tar.bz2 |
Merge branch 'develop' into feature/new_datatypesfeature/new_datatypes
Diffstat (limited to 'src/H5Zdeflate.c')
-rw-r--r-- | src/H5Zdeflate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Zdeflate.c b/src/H5Zdeflate.c index 032945a..7d58064 100644 --- a/src/H5Zdeflate.c +++ b/src/H5Zdeflate.c @@ -42,8 +42,6 @@ const H5Z_class2_t H5Z_DEFLATE[1] = {{ H5Z__filter_deflate, /* The actual filter function */ }}; -#define H5Z_DEFLATE_SIZE_ADJUST(s) (ceil(((double)(s)) * 1.001) + 12) - /*------------------------------------------------------------------------- * Function: H5Z__filter_deflate * @@ -149,7 +147,7 @@ H5Z__filter_deflate(unsigned flags, size_t cd_nelmts, const unsigned cd_values[] */ const Bytef *z_src = (const Bytef *)(*buf); Bytef *z_dst; /*destination buffer */ - uLongf z_dst_nbytes = (uLongf)H5Z_DEFLATE_SIZE_ADJUST(nbytes); + uLongf z_dst_nbytes = (uLongf)compressBound(nbytes); uLong z_src_nbytes = (uLong)nbytes; int aggression; /* Compression aggression setting */ |