Try doing frames calculation with int where possible.
authorCarl Hetherington <cth@carlh.net>
Wed, 15 Jul 2015 17:14:21 +0000 (18:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 15 Jul 2015 17:14:21 +0000 (18:14 +0100)
src/lib/dcpomatic_time.h

index 4f95b64ffe64fe2be69409dca18e26788299a975..494aebba73c32583d902608a55d5184a9523af1c 100644 (file)
@@ -133,7 +133,7 @@ public:
 
        template <typename T>
        int64_t frames (T r) const {
-               return floor (double (_t) * r / HZ);
+               return floor (_t * r / HZ);
        }
 
        /** @param r Frames per second */