diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-20 22:17:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-20 22:17:21 +0000 |
| commit | c3cccfcf0f3942a55f1c0df5ba623fcfa360533e (patch) | |
| tree | 7a6fe3ca4818ecf75521b3f3d4a1b6ee624dc822 | |
| parent | 95f2091537ec744ec5127eb713a7043d04ce25bf (diff) | |
Add test for #1565.
| -rw-r--r-- | test/threed_test.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/threed_test.cc b/test/threed_test.cc index a9dd21c96..c749694c6 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -158,3 +158,20 @@ BOOST_AUTO_TEST_CASE (threed_test6) BOOST_REQUIRE (!wait_for_jobs()); check_dcp ("test/data/threed_test6", film->dir(film->dcp_name())); } + +/** Check 2D content set as being 3D; this fails with a -114 in some versions */ +BOOST_AUTO_TEST_CASE (threed_test7) +{ + shared_ptr<Film> film = new_test_film2 ("threed_test7"); + shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/red_24.mp4")); + film->examine_and_add_content (c); + BOOST_REQUIRE (!wait_for_jobs()); + + c->video->set_frame_type (VIDEO_FRAME_TYPE_3D); + + film->set_three_d (true); + film->make_dcp (); + film->write_metadata (); + + BOOST_REQUIRE (!wait_for_jobs()); +} |
