Missing rounding.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Jul 2015 18:42:30 +0000 (19:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 9 Jul 2015 18:42:30 +0000 (19:42 +0100)
src/lib/dcpomatic_time.h

index df9c46c7157651fff9759b8f6e342c18b563ce2f..6988159570c2680468eb016905c76cfccfc3494b 100644 (file)
@@ -175,7 +175,7 @@ public:
 
 
        static Time<S, O> from_seconds (double s) {
-               return Time<S, O> (s * HZ);
+               return Time<S, O> (rint (s * HZ));
        }
 
        template <class T>