Allow fractional frames per second when computing Time from frames.
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Jan 2016 21:43:02 +0000 (21:43 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Jan 2016 21:43:02 +0000 (21:43 +0000)
src/dcp_time.cc
src/dcp_time.h

index 4e7ab6f2fa0cac106c840dbebc45ed093e1a34b2..ca99e584e35170b2c40ccc89705087e684dc39b6 100644 (file)
@@ -33,7 +33,7 @@ using namespace std;
 using namespace boost;
 using namespace dcp;
 
-Time::Time (int frame, int frames_per_second, int tcr_)
+Time::Time (int frame, double frames_per_second, int tcr_)
 {
        set (double (frame) / frames_per_second, tcr_);
 }
index 44e3cf0234bd7ccc37dab548ed81215052cebb5e..f40860d72e263982cabf58addbc78959f6d3bc9f 100644 (file)
@@ -45,7 +45,7 @@ public:
         *  @param frames_per_second Frames per second.
         *  @param tcr Timecode rate.
         */
-       Time (int frame, int frames_per_second, int tcr);
+       Time (int frame, double frames_per_second, int tcr);
 
        /** Construct a Time from hours, minutes, seconds, editable units and a timecode rate.
         *  @param h_ Hours.