From 6300edd66433dffed9fb30a0b3b8db7ca3355809 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 15 Jul 2015 18:14:21 +0100 Subject: [PATCH] Try doing frames calculation with int where possible. --- src/lib/dcpomatic_time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 int64_t frames (T r) const { - return floor (double (_t) * r / HZ); + return floor (_t * r / HZ); } /** @param r Frames per second */ -- 2.30.2