db8af2f changed rebase() to round down when rebasing times, but
authorCarl Hetherington <cth@carlh.net>
Wed, 7 Feb 2018 21:38:01 +0000 (21:38 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 7 Feb 2018 21:38:01 +0000 (21:38 +0000)
commitf964e99d63f5f5999ae4f245e6b25ced014d8383
tree31262a83652d5e4b1b6d9460843873287208ad7c
parentf19fba719f1da6850ae320534c669196ea9d854c
db8af2f changed rebase() to round down when rebasing times, but
did not say why.  This rounding down produces some unexpected results,
e.g. taking 41 at a TCR of 1000 to a TCR of 24 gives 0, which upsets
those who use DCP-o-matic and put in a SRT subtitle ending at ,041 ---
the sub time is rounded down to 0 for a SMPTE DCP.

This commit restores round-to-nearest behaviour.
src/dcp_time.cc
test/dcp_time_test.cc
test/write_subtitle_test.cc