diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-14 21:30:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-14 21:30:49 +0100 |
| commit | 0d6a18d8c1d80f4badb06929b90515bf121595b5 (patch) | |
| tree | 109f6ef3c56032abfdfc38124eabababc588d347 /src/lib | |
| parent | 7cb037d17d5a34e2fddd4dce780144fd8d98513c (diff) | |
Try rounding down when calculating frames from Times.
Diffstat (limited to 'src/lib')
| -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 437b78f62..4f95b64ff 100644 --- 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 */ |
