Try rounding down when calculating frames from Times.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 437b78f627bc7e51f5c59701f3fe7a59b3528924..4f95b64ffe64fe2be69409dca18e26788299a975 100644 (file)
@@ -133,7 +133,7 @@ public:
 
        template <typename T>
        int64_t frames (T r) const {
-               return rint (double (_t) * r / HZ);
+               return floor (double (_t) * r / HZ);
        }
 
        /** @param r Frames per second */