X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fmca_subdescriptors_test.cc;h=e34a909f44827274ccd74f365e5ab717b2337120;hb=b4317bae08d135fa6d30b5b7327d05a251c01f7d;hp=d3702b9ccd405ce32e2ec7fab4dfe873a23af1ee;hpb=b5d1482ab0ca0808f0da5c14bfd2cf30c8d58498;p=dcpomatic.git diff --git a/test/mca_subdescriptors_test.cc b/test/mca_subdescriptors_test.cc index d3702b9cc..e34a909f4 100644 --- a/test/mca_subdescriptors_test.cc +++ b/test/mca_subdescriptors_test.cc @@ -72,12 +72,26 @@ test_descriptors(int mxf_channels, vector active_channels, vector< } +/* This seems like an impossible case but let's check it anyway */ +BOOST_AUTO_TEST_CASE(mca_subdescriptors_written_correctly_mono_in_2_channel) +{ + test_descriptors(2, { dcp::Channel::CENTRE }, { "chL", "chR" }, "sg51"); +} + + BOOST_AUTO_TEST_CASE(mca_subdescriptors_written_correctly_mono_in_6_channel) { test_descriptors(6, { dcp::Channel::CENTRE }, { "chL", "chR", "chC", "chLFE", "chLs", "chRs" }, "sg51"); } +/* If we only have two channels in the MXF we shouldn't see any extra descriptors */ +BOOST_AUTO_TEST_CASE(mca_subdescriptors_written_correctly_stereo_in_2_channel) +{ + test_descriptors(2, { dcp::Channel::LEFT, dcp::Channel::RIGHT }, { "chL", "chR" }, "sg51"); +} + + BOOST_AUTO_TEST_CASE(mca_subdescriptors_written_correctly_stereo_in_6_channel) { test_descriptors(6, { dcp::Channel::LEFT, dcp::Channel::RIGHT }, { "chL", "chR", "chC", "chLFE", "chLs", "chRs" }, "sg51");