diff options
author | Robin Gareus <robin@gareus.org> | 2014-03-23 01:02:36 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-03-23 01:02:36 +0100 |
commit | 9fb98b83bfd1751c8b71f5ca3b0c977ebc7756e5 (patch) | |
tree | 8d8a350e2058551ee64f8d531e7e939394afa830 /libs | |
parent | 89e63b4bce0fbbbdfe5c2685e929c0f46bbbf7ca (diff) |
fix timecode initialization
Diffstat (limited to 'libs')
-rw-r--r-- | libs/timecode/timecode/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/timecode/timecode/time.h b/libs/timecode/timecode/time.h index 65cd3d7a13..ad7af28037 100644 --- a/libs/timecode/timecode/time.h +++ b/libs/timecode/timecode/time.h @@ -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 { |