projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f295bd
)
Fix rounding when converting to frames.
author
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 13:49:53 +0000
(13:49 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 13:49:53 +0000
(13:49 +0000)
src/lib/dcpomatic_time.h
patch
|
blob
|
history
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 6afce554f5231796c60ccb53bd230a5fc18fa010..dc9b0cd8ac680c6e1a3803d7805c76cdd9d14b57 100644
(file)
--- a/
src/lib/dcpomatic_time.h
+++ b/
src/lib/dcpomatic_time.h
@@
-59,7
+59,7
@@
public:
template <typename T>
int64_t frames (T r) const {
- return rint (
_t
* r / HZ);
+ return rint (
double (_t)
* r / HZ);
}
/** @param r Frames per second */