diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-09 01:18:12 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-09 01:18:12 +0200 |
| commit | 507df7eeca90b7e5a58a1ae4bd44ba93ae305f21 (patch) | |
| tree | 33ac1418e4978a42a7f9b7afe8744a3801a85e13 /test/threed_test.cc | |
| parent | 4ff26e3c6c5251ec93e6e2415f741947bf065c96 (diff) | |
Add a failing test.2250-3d-error
Diffstat (limited to 'test/threed_test.cc')
| -rw-r--r-- | test/threed_test.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/threed_test.cc b/test/threed_test.cc index c67e7550f..ba044890f 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -236,6 +236,25 @@ BOOST_AUTO_TEST_CASE (threed_test_separate_files_slightly_different_lengths1) } +/** Same again but other way round */ +BOOST_AUTO_TEST_CASE (threed_test_separate_files_slightly_different_lengths2) +{ + auto film = new_test_film2 ("threed_test_separate_files_slightly_different_lengths2"); + auto L = make_shared<FFmpegContent>("test/data/test.mp4"); + film->examine_and_add_content (L); + auto R = make_shared<FFmpegContent>("test/data/test.mp4"); + film->examine_and_add_content (R); + BOOST_REQUIRE (!wait_for_jobs()); + + L->video->set_frame_type (VideoFrameType::THREE_D_LEFT); + R->video->set_frame_type (VideoFrameType::THREE_D_RIGHT); + L->set_trim_end (dcpomatic::ContentTime::from_frames(1, 24)); + + film->set_three_d (true); + make_and_verify_dcp (film); +} + + /** Trigger a -114 error by trying to make a 3D DCP out of two files with very * different lengths. */ |
