summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-18 13:05:11 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-18 13:05:11 +0100
commit36310b78f8fd84554f2c87dc513bd04efe0fd69a (patch)
tree5586b8e6ecf890ee6a9887945a8c58e8ebea1e9d /test/test.cc
parentbcc07ce5fce539b83fb2469073ed609c75ea9709 (diff)
Bv2.1 8.6.{1.2}: CompositionMetadataAsset must exist and it must have some <VersionNumber>.
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index 38ff565e..91ecfcf7 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -280,7 +280,7 @@ simple_picture (boost::filesystem::path path, string suffix, int frames)
shared_ptr<dcp::SoundAsset>
simple_sound (boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_meta, string language, int frames, int sample_rate)
{
- int const channels = 1;
+ int const channels = 6;
/* Set a valid language, then overwrite it, so that the language parameter can be badly formed */
shared_ptr<dcp::SoundAsset> ms (new dcp::SoundAsset(dcp::Fraction(24, 1), sample_rate, channels, dcp::LanguageTag("en-US"), dcp::SMPTE));
@@ -332,6 +332,11 @@ make_simple (boost::filesystem::path path, int reels, int frames)
cpl->set_content_version (
dcp::ContentVersion("urn:uuid:75ac29aa-42ac-1234-ecae-49251abefd11", "content-version-label-text")
);
+ cpl->set_main_sound_configuration("51/L,R,C,LFE,Ls,Rs");
+ cpl->set_main_sound_sample_rate(48000);
+ cpl->set_main_picture_stored_area(dcp::Size(1998, 1080));
+ cpl->set_main_picture_active_area(dcp::Size(1998, 1080));
+ cpl->set_version_number(1);
for (int i = 0; i < reels; ++i) {
string suffix = reels == 1 ? "" : dcp::String::compose("%1", i);