diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-20 13:49:53 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-20 13:49:53 +0000 |
| commit | 1e5bc53e50d38bfd78de7f5f8096eb584249afa8 (patch) | |
| tree | 1c874b559038971aee14461f820cab9e6272da2f /src | |
| parent | 4f295bd1b0263d54dcd584c87a16d5081bde7379 (diff) | |
Fix rounding when converting to frames.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 6afce554f..dc9b0cd8a 100644 --- 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 */ |
