diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-01 11:25:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-11 14:12:33 +0100 |
| commit | b1f03ef090dd57d8d33b814184583865a92c1d48 (patch) | |
| tree | 1b54f018761ca1bbb5f6d0c75f7bcd7a1773ad1e /test | |
| parent | e6a4cb97059f9b4683b00da893dc07bef59ad1e4 (diff) | |
Increase fudge factor at the boundary between audio signal and silence.
Diffstat (limited to 'test')
| m--------- | test/data | 0 | ||||
| -rw-r--r-- | test/player_test.cc | 16 |
2 files changed, 15 insertions, 1 deletions
diff --git a/test/data b/test/data -Subproject eda45cf0736a897f944a8c38e9aed9ca98d4c3c +Subproject 6ca8ac639cd63e909237badb5b564e09d54ee90 diff --git a/test/player_test.cc b/test/player_test.cc index 1736bfc7e..6812ddbb0 100644 --- a/test/player_test.cc +++ b/test/player_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -343,3 +343,17 @@ BOOST_AUTO_TEST_CASE (player_trim_crash) butler->rethrow (); } + +/** Test a crash when the gap between the last audio and the start of a silent period is more than 1 sample */ +BOOST_AUTO_TEST_CASE (player_silence_crash) +{ + shared_ptr<Film> film = new_test_film2 ("player_silence_crash"); + shared_ptr<Content> sine = content_factory("test/data/impulse_train.wav").front(); + film->examine_and_add_content (sine); + BOOST_REQUIRE (!wait_for_jobs()); + + sine->set_video_frame_rate (23.976); + film->write_metadata (); + film->make_dcp (); + BOOST_REQUIRE (!wait_for_jobs()); +} |
