summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-11 15:25:16 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-11 15:55:48 +0100
commita7be213f1063e3c5cb4dcba37aa0443d1f28f9d5 (patch)
treeb0327966a24a2944d166b513f97d0c2ca1a5f5eb
parent394516c351602f58150bdbbb4e61c45163927147 (diff)
Fix failing tests.
Broken in the fix for #2780, when we started to check that referenced audio MXFs have the correct number of channels.
-rw-r--r--test/required_disk_space_test.cc10
-rw-r--r--test/vf_test.cc1
2 files changed, 7 insertions, 4 deletions
diff --git a/test/required_disk_space_test.cc b/test/required_disk_space_test.cc
index fad24389b..b704ccef2 100644
--- a/test/required_disk_space_test.cc
+++ b/test/required_disk_space_test.cc
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE (required_disk_space_test)
{
auto film = new_test_film ("required_disk_space_test");
film->set_j2k_bandwidth (100000000);
- film->set_audio_channels (6);
+ film->set_audio_channels(8);
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
auto content_a = content_factory("test/data/flat_blue.png")[0];
BOOST_REQUIRE (content_a);
@@ -59,7 +59,7 @@ BOOST_AUTO_TEST_CASE (required_disk_space_test)
check_within_n (
film->required_disk_space(),
288LL * (100000000 / 8) / 24 + // video
- 288LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
@@ -69,17 +69,19 @@ BOOST_AUTO_TEST_CASE (required_disk_space_test)
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 288LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
+ std::string why_not;
+ BOOST_CHECK(content_b->can_reference_audio(film, why_not));
content_b->set_reference_audio (true);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 240LL * 48000 * 6 * 3 / 24 + // audio
+ 240LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
diff --git a/test/vf_test.cc b/test/vf_test.cc
index ed7f483ae..ca987b22d 100644
--- a/test/vf_test.cc
+++ b/test/vf_test.cc
@@ -73,6 +73,7 @@ BOOST_AUTO_TEST_CASE (vf_test1)
/* Multi-reel DCP can't be referenced if we are using a single reel for the project */
film->set_reel_type (ReelType::SINGLE);
+ film->set_audio_channels(16);
string why_not;
BOOST_CHECK (!dcp->can_reference_video(film, why_not));
BOOST_CHECK (!dcp->can_reference_audio(film, why_not));