projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e63b4
)
fix timecode initialization
author
Robin Gareus
<robin@gareus.org>
Sun, 23 Mar 2014 00:02:36 +0000
(
01:02
+0100)
committer
Robin Gareus
<robin@gareus.org>
Sun, 23 Mar 2014 00:02:36 +0000
(
01:02
+0100)
libs/timecode/timecode/time.h
patch
|
blob
|
history
diff --git
a/libs/timecode/timecode/time.h
b/libs/timecode/timecode/time.h
index 65cd3d7a13b6ea9e83145190cdc68c5de2d9142c..ad7af28037de4f4bdcc232d11b246b00adb0368a 100644
(file)
--- 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 {