Round down when rebasing times.
[libdcp.git] / test / write_subtitle_test.cc
index 577eadec551e36ca72a5530a26d07db8ad570ddc..8b50b0e3f0660fa7494ce8625956043a53aaf709 100644 (file)
@@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                        dcp::Time (5, 6, 7, 8, 24)
                        )
                );
-       
+
        c._id = "a6c58cff-3e1e-4b38-acec-a42224475ef6";
 
        check_xml (
@@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                "    </Subtitle>\n"
                "  </Font>\n"
                "  <Font Italic=\"yes\" Color=\"FF800040\" Size=\"91\" Effect=\"border\" EffectColor=\"FF010203\" Script=\"normal\" Underlined=\"no\" Weight=\"normal\">\n"
-               "    <Subtitle SpotNumber=\"2\" TimeIn=\"05:41:00:219\" TimeOut=\"06:12:15:219\" FadeUpTime=\"930790\" FadeDownTime=\"4591830\">\n"
+               "    <Subtitle SpotNumber=\"2\" TimeIn=\"05:41:00:218\" TimeOut=\"06:12:15:218\" FadeUpTime=\"930792\" FadeDownTime=\"4591834\">\n"
                "      <Text VAlign=\"bottom\" VPosition=\"40\">What's going on</Text>\n"
                "    </Subtitle>\n"
                "  </Font>\n"
@@ -99,4 +99,3 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                list<string> ()
                );
 }
-