diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2002-05-01 14:37:14 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2002-05-01 14:37:14 (GMT) |
commit | 49a7f1d03281e460f3738b084c68a2a1c4960190 (patch) | |
tree | 28159d5b7f94ccd4a781fa31d0eacdaf345687d4 /tools/gifconv/readhdf.c | |
parent | 80de8bccb966432f2402562a97fec9be3aea9443 (diff) | |
download | hdf5-49a7f1d03281e460f3738b084c68a2a1c4960190.zip hdf5-49a7f1d03281e460f3738b084c68a2a1c4960190.tar.gz hdf5-49a7f1d03281e460f3738b084c68a2a1c4960190.tar.bz2 |
[svn-r5305]
Purpose:
user reported a bug on h5 to gif tool
Description:
h5 to gif did not read an HDF5 image correctly
Solution:
updated the program so that it reads the updated HDF5 image format to the latest specification
the debug version of MSVC was giving a failure on the write of the GIF file,
regarding the GIF file pointer
this write error is eliminated declaring that pointer a global variable
there is still an applicattion error on the exit of the program, only on the debug version of MSVC
Platforms tested:
w2000
Diffstat (limited to 'tools/gifconv/readhdf.c')
-rw-r--r-- | tools/gifconv/readhdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gifconv/readhdf.c b/tools/gifconv/readhdf.c index 08258de..f1a3a39 100644 --- a/tools/gifconv/readhdf.c +++ b/tools/gifconv/readhdf.c @@ -72,7 +72,7 @@ int ReadHDF(BYTE** data, BYTE palette[256][3], hsize_t *image_size, } /* get the dimension size of the image */ - if (H5Sget_simple_extent_dims(dspace , image_size , NULL) !=2 ) { + if (H5Sget_simple_extent_dims(dspace , image_size , NULL) <0 ) { fprintf(stderr , "Unable to get dimension info\n"); return -1; } |