Some shipping providers, like DPD, calculate the girth and volume in liters.
The decisive factor is which measure is reached first. The volume in liters is often reached first and is then considered the limit.