Changeset 164
- Timestamp:
- 10/13/2009 03:11:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/gcf/gcflib.c
r163 r164 1128 1128 *calib = fd->calib; 1129 1129 *dt = (hdr.smprate == 0) ? 0.0 : 1.0/(float)hdr.smprate; 1130 getlth = Nint32( seclth / *dt );1130 getlth = (hdr.smprate == 0) ? 0 : Nint32( seclth / *dt ); 1131 1131 if (getlth <= 0) {*status = GcfERR_ZEROLTH; return;} 1132 1132 *ldat = (INT32 *)sy_allocmem( getlth, (int)sizeof(INT32), status ); … … 1187 1187 GcfFreeMem( blk ); 1188 1188 *status = GcfERR_BUG; 1189 fprintf( stderr, "*** GcfReadStream: bug (1) [sample: %d] ***\n", 1190 fd->sample ); 1189 fprintf( stderr, 1190 "*** GcfReadStream: bug (1) [sample: %d, actblksmp %d] ***\n", 1191 fd->sample, actblksmp ); 1191 1192 return; 1192 1193 } /*endif*/
Note: See TracChangeset
for help on using the changeset viewer.