Round down when rebasing times.
[libdcp.git] / src / dcp_time.cc
index 19ab2de105857c1414b5f486ea4823db9d078a31..3db449fb058a8a56f6c4800e72b79db3af72d671 100644 (file)
@@ -291,5 +291,5 @@ Time::as_seconds () const
 Time
 Time::rebase (int tcr_) const
 {
-       return Time (h, m, s, rint (float (e) * tcr_ / tcr), tcr_);
+       return Time (h, m, s, floor (float (e) * tcr_ / tcr), tcr_);
 }