diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-06 20:37:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-06 20:37:40 +0100 |
| commit | f7b50fd54b249c294e686fc09d8bb33d2a992d42 (patch) | |
| tree | d10f46a74b34fde0a0659ba6a5d36264d3430b32 /src | |
| parent | 8afd7786c87b571118d1e098a730ab69b7b3908b (diff) | |
Fix heinous bug with conversion to libdcp::Time causing missing subtitles (and probably other problems).
Diffstat (limited to 'src')
| -rw-r--r-- | src/dcp_time.cc | 4 |
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; } |
