summaryrefslogtreecommitdiffstats
path: root/src/H5Z.c
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2004-11-02 19:12:18 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2004-11-02 19:12:18 (GMT)
commit8c0c4f945db726fcddd2a40e4f617cdf6aac6be8 (patch)
tree82b17661293cac5042335d70c2ba1a74e56c2242 /src/H5Z.c
parent3f0abcc71f1803b59d8ca64b9ec642235fdfc1c9 (diff)
downloadhdf5-8c0c4f945db726fcddd2a40e4f617cdf6aac6be8.zip
hdf5-8c0c4f945db726fcddd2a40e4f617cdf6aac6be8.tar.gz
hdf5-8c0c4f945db726fcddd2a40e4f617cdf6aac6be8.tar.bz2
[svn-r9495] Purpose:
Fix SZIP filter to dynmically detect encoder. Description: Solution: See: http://hdf.ncsa.uiuc.edu/RFC/SZIP/Szip_dynamic_12_Oct.pdf Changes to h5dump tests, contingent on detecting SZIP encoder.
Diffstat (limited to 'src/H5Z.c')
-rw-r--r--src/H5Z.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index fa52ec8..4dddca8 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -94,6 +94,9 @@ H5Z_init_interface (void)
HGOTO_ERROR (H5E_PLINE, H5E_CANTINIT, FAIL, "unable to register fletcher32 filter")
#endif /* H5_HAVE_FILTER_FLETCHER32 */
#ifdef H5_HAVE_FILTER_SZIP
+ H5Z_SZIP->encoder_present = SZ_encoder_enabled();
+ if (H5Z_SZIP->encoder_present < 0)
+ HGOTO_ERROR (H5E_PLINE, H5E_CANTINIT, FAIL, "szip filter reports bad status")
if (H5Z_register (H5Z_SZIP)<0)
HGOTO_ERROR (H5E_PLINE, H5E_CANTINIT, FAIL, "unable to register szip filter")
#endif /* H5_HAVE_FILTER_SZIP */