projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try rounding down when calculating frames from Times.
[dcpomatic.git]
/
src
/
lib
/
dcpomatic_time.h
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 437b78f627bc7e51f5c59701f3fe7a59b3528924..4f95b64ffe64fe2be69409dca18e26788299a975 100644
(file)
--- a/
src/lib/dcpomatic_time.h
+++ b/
src/lib/dcpomatic_time.h
@@
-133,7
+133,7
@@
public:
template <typename T>
int64_t frames (T r) const {
- return
rint
(double (_t) * r / HZ);
+ return
floor
(double (_t) * r / HZ);
}
/** @param r Frames per second */