Fix rounding when converting to frames.
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Jan 2015 13:49:53 +0000 (13:49 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 Jan 2015 13:49:53 +0000 (13:49 +0000)
src/lib/dcpomatic_time.h

index 6afce554f5231796c60ccb53bd230a5fc18fa010..dc9b0cd8ac680c6e1a3803d7805c76cdd9d14b57 100644 (file)
@@ -59,7 +59,7 @@ public:
 
        template <typename T>
        int64_t frames (T r) const {
-               return rint (_t * r / HZ);
+               return rint (double (_t) * r / HZ);
        }
 
        /** @param r Frames per second */