diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-11 14:56:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-11 14:56:08 +0100 |
| commit | ca2d68979e14bb4fd1422e18eead956e2564a7f6 (patch) | |
| tree | 3fb25c90c056de694752745dda45cd1816ea776b | |
| parent | 366910025ce80231f1192662efe79f76d78ff572 (diff) | |
Add failing test for reels with audio hanging over the end of the last bit of video.
| -rw-r--r-- | test/reels_test.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/reels_test.cc b/test/reels_test.cc index 6dd40c13e..6c617d6b2 100644 --- a/test/reels_test.cc +++ b/test/reels_test.cc @@ -297,3 +297,24 @@ BOOST_AUTO_TEST_CASE (reels_test6) film->make_dcp (); BOOST_REQUIRE (!wait_for_jobs ()); } + +/** Check the case where the last bit of audio hangs over the end of the video + * and we are using REELTYPE_BY_VIDEO_CONTENT. + */ +BOOST_AUTO_TEST_CASE (reels_test7) +{ + shared_ptr<Film> film = new_test_film ("reels_test7"); + film->set_name ("reels_test7"); + film->set_container (Ratio::from_id ("185")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST")); + shared_ptr<FFmpegContent> A (new FFmpegContent (film, "test/data/flat_red.png")); + film->examine_and_add_content (A); + BOOST_REQUIRE (!wait_for_jobs ()); + shared_ptr<FFmpegContent> B (new FFmpegContent (film, "test/data/awkward_length.wav")); + film->examine_and_add_content (B); + BOOST_REQUIRE (!wait_for_jobs ()); + + film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT); + film->make_dcp (); + BOOST_REQUIRE (!wait_for_jobs ()); +} |
