diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-15 18:14:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-15 18:14:21 +0100 |
| commit | 6300edd66433dffed9fb30a0b3b8db7ca3355809 (patch) | |
| tree | 3b7e9da5ba631ef810403fa42d79ecbd5574801c /src | |
| parent | a3b3af1dac20c52ab63c956c8339d838a0416957 (diff) | |
Try doing frames calculation with int where possible.
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 4f95b64ff..494aebba7 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 floor (double (_t) * r / HZ); + return floor (_t * r / HZ); } /** @param r Frames per second */ |
