Segfault reading folder with own 32-bit compressed TIFF, fixes #4376

This commit is contained in:
heckflosse
2018-02-07 14:45:57 +01:00
parent 536ebb9974
commit 12261b5796

View File

@@ -126,6 +126,11 @@ inline void ImageDatas::convertTo(unsigned char src, float& dst) const
{
dst = src * 257;
}
template<>
inline void ImageDatas::convertTo(float src, float& dst) const
{
dst = std::isnan(src) ? 0.f : src;
}
// --------------------------------------------------------------------
// Planar order classes