projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3b3af1
)
Try doing frames calculation with int where possible.
author
Carl Hetherington
<cth@carlh.net>
Wed, 15 Jul 2015 17:14:21 +0000
(18:14 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 15 Jul 2015 17:14:21 +0000
(18:14 +0100)
src/lib/dcpomatic_time.h
patch
|
blob
|
history
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 4f95b64ffe64fe2be69409dca18e26788299a975..494aebba73c32583d902608a55d5184a9523af1c 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 floor (
double (_t)
* r / HZ);
+ return floor (
_t
* r / HZ);
}
/** @param r Frames per second */