- if (TIFFFillStrip(tif, strip) && (*tif->tif_decodestrip)(tif,
- (tidata_t) buf, size, (tsample_t)(strip / td->td_stripsperimage))) {
+ if (TIFFFillStrip(tif, strip)
+ && (*tif->tif_decodestrip)(tif, (tidata_t) buf, size,
+ (tsample_t)(strip / td->td_stripsperimage)) > 0 ) {