Assorted image subtitle fixes.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 6afce554f5231796c60ccb53bd230a5fc18fa010..ae8f251996088814f507ff63f0b2c6427ea68d97 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 */
@@ -193,6 +193,7 @@ class ContentTimePeriod
 {
 public:
        ContentTimePeriod () {}
+       
        ContentTimePeriod (ContentTime f, ContentTime t)
                : from (f)
                , to (t)