message: fixed rare division by zero
diff: @@ -42,6 +42,8 @@ namespace oidn {
  }
  if (inByteRowStride != 0)
  + {
  + if (this->bytePixelStride != 0)
  {
  if (inByteRowStride < width * this->bytePixelStride)
  throw Exception(Error::InvalidArgument, "row stride smaller than width * pixel stride");
  @@ -51,6 +53,11 @@ namespace oidn {
  this->rowStride = inByteRowStride / this->bytePixelStride;
  }
  else
  + {
  + this->rowStride = inByteRowStride;
  + }
  + }
  + else
  {
  this->rowStride = width;
  }
  