diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-19 21:43:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-03 10:22:33 +0200 |
| commit | 9278232a79b8e275d144f1d1f2652f27457320e9 (patch) | |
| tree | ea829147aebefa610c95a900b173604b799d168c /test/subtitle_timing_test.cc | |
| parent | d6b517f7a126be155aaad3e5271238d5e2af837b (diff) | |
Use explicit Hz value for some times.
Diffstat (limited to 'test/subtitle_timing_test.cc')
| -rw-r--r-- | test/subtitle_timing_test.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/subtitle_timing_test.cc b/test/subtitle_timing_test.cc index 0bb678655..ce9580415 100644 --- a/test/subtitle_timing_test.cc +++ b/test/subtitle_timing_test.cc @@ -129,15 +129,15 @@ BOOST_AUTO_TEST_CASE(dvb_subtitles_replace_the_last) using dcpomatic::ContentTime; std::vector<Event> correct = { - { "start", ContentTime(439872) }, // 4.582000s actual subtitle #1 - { "stop", ContentTime(998400) }, // 10.400000s stop caused by incoming blank - { "start", ContentTime(998400) }, // 10.400000s blank - { "stop", ContentTime(1141248) }, // 11.888000s stop caused by incoming subtitle #2 - { "start", ContentTime(1141248) }, // 11.888000s subtitle #2 - { "stop", ContentTime(1455936) }, // 15.166000s ... - { "start", ContentTime(1455936) }, // 15.166000s - { "stop", ContentTime(1626816) }, // 16.946000s - { "start", ContentTime(1626816) }, // 16.946000s + { "start", ContentTime(439872, 96000) }, // 4.582000s actual subtitle #1 + { "stop", ContentTime(998400, 96000) }, // 10.400000s stop caused by incoming blank + { "start", ContentTime(998400, 96000) }, // 10.400000s blank + { "stop", ContentTime(1141248, 96000) }, // 11.888000s stop caused by incoming subtitle #2 + { "start", ContentTime(1141248, 96000) }, // 11.888000s subtitle #2 + { "stop", ContentTime(1455936, 96000) }, // 15.166000s ... + { "start", ContentTime(1455936, 96000) }, // 15.166000s + { "stop", ContentTime(1626816, 96000) }, // 16.946000s + { "start", ContentTime(1626816, 96000) }, // 16.946000s }; BOOST_REQUIRE(events.size() > correct.size()); |
