summaryrefslogtreecommitdiff
path: root/src/dcp_time.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-06 20:37:40 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-06 20:37:40 +0100
commitf7b50fd54b249c294e686fc09d8bb33d2a992d42 (patch)
treed10f46a74b34fde0a0659ba6a5d36264d3430b32 /src/dcp_time.cc
parent8afd7786c87b571118d1e098a730ab69b7b3908b (diff)
Fix heinous bug with conversion to libdcp::Time causing missing subtitles (and probably other problems).
Diffstat (limited to 'src/dcp_time.cc')
-rw-r--r--src/dcp_time.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index d597e3dc..4c16a91a 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -59,12 +59,12 @@ Time::set (double ss)
t = (int (round (ss * 1000)) % 1000) / 4;
s = floor (ss);
- if (s > 60) {
+ if (s >= 60) {
m = s / 60;
s -= m * 60;
}
- if (m > 60) {
+ if (m >= 60) {
h = m / 60;
m -= h * 60;
}