Pick up effect and effect color.
[libdcp.git] / src / dcp_time.cc
index f853143a698a67e2f2e55d7c11775f581c182b1a..0cc6b264894c00be6c11b257ddbe73084c523f17 100644 (file)
 
 */
 
+/** @file  src/dcp_time.cc
+ *  @brief A representation of time within a DCP.
+ */
+
 #include <iostream>
 #include <cmath>
 #include "dcp_time.h"
@@ -31,7 +35,7 @@ Time::Time (int frame, int frames_per_second)
        , t (0)
 {
        float sec_float = float (frame) / frames_per_second;
-       t = (int (sec_float * 1000) % 1000) / 4;
+       t = (int (floor (sec_float * 1000)) % 1000) / 4;
        s = floor (sec_float);
 
        if (s > 60) {