fix timecode initialization
authorRobin Gareus <robin@gareus.org>
Sun, 23 Mar 2014 00:02:36 +0000 (01:02 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 23 Mar 2014 00:02:36 +0000 (01:02 +0100)
libs/timecode/timecode/time.h

index 65cd3d7a13b6ea9e83145190cdc68c5de2d9142c..ad7af28037de4f4bdcc232d11b246b00adb0368a 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef __timecode_time_h__
 #define __timecode_time_h__
 
+#include <cmath>
 #include <ostream>
 #include <inttypes.h>
 
@@ -68,6 +69,7 @@ struct LIBTIMECODE_API Time {
                frames = 0;
                subframes = 0;
                rate = a_rate;
+               drop = (rintf(100.f * a_rate) == 2997);
        }
        
        bool operator== (const Time& other) const {