diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-09-27 00:16:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-29 00:57:58 +0200 |
| commit | e67ce8ae4b9121bbcef2c1dcb61bdb5b9330ad78 (patch) | |
| tree | ee3d90621a55e1f487f08151e4ae1ae6ba4042f3 /test | |
| parent | 0c8349e3616735e21cc79bec8e705a77224f1921 (diff) | |
Fix errors with WAVs containing markers (#2617).
I'm not 100% sure about this but they seem to end up giving audio
packets with no channels and no frames. Here we handle such packets
better.
Diffstat (limited to 'test')
| -rw-r--r-- | test/content_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/content_test.cc b/test/content_test.cc index 47099025e..5ab714b47 100644 --- a/test/content_test.cc +++ b/test/content_test.cc @@ -168,3 +168,12 @@ BOOST_AUTO_TEST_CASE (content_test7) content[0]->audio->set_delay(-1000); make_and_verify_dcp (film, { dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_RATE_FOR_2K }); } + + +/** WAVs with markers (I think) can end up making audio packets with no channels and no frames (#2617) */ +BOOST_AUTO_TEST_CASE(wav_with_markers_zero_channels_test) +{ + auto content = content_factory(TestPaths::private_data() / "wav_with_markers.wav"); + auto film = new_test_film2("wav_with_markers_zero_channels_test", content); + make_and_verify_dcp(film, { dcp::VerificationNote::Code::MISSING_CPL_METADATA }); +} |
