summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-22 01:29:15 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-26 00:09:27 +0100
commit5334f1c120ed248f22a5751d47555cf94bf9b4a9 (patch)
treee210b69ec1ebf9a9bb6227aba45b42d957cb2673 /test
parent3fdf40334a7c3c04cb5f650f242633223452b423 (diff)
Add another test, including a frame rate change.
Diffstat (limited to 'test')
-rw-r--r--test/player_test.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/player_test.cc b/test/player_test.cc
index e0f0d1ff0..d0460d88d 100644
--- a/test/player_test.cc
+++ b/test/player_test.cc
@@ -575,3 +575,24 @@ BOOST_AUTO_TEST_CASE(trimmed_sound_mix_bug_13)
check_mxf_audio_file("test/data/trimmed_sound_mix_bug_13.mxf", dcp_file(film, "pcm_"));
}
+
+BOOST_AUTO_TEST_CASE(trimmed_sound_mix_bug_13_frame_rate_change)
+{
+ auto A = content_factory("test/data/sine_16_48_440_10.wav").front();
+ auto B = content_factory("test/data/sine_16_44.1_440_10.wav").front();
+ auto film = new_test_film2("trimmed_sound_mix_bug_13_frame_rate_change", { A, B });
+
+ A->set_position(film, DCPTime());
+ A->audio->set_gain(-12);
+ B->set_position(film, DCPTime());
+ B->audio->set_gain(-12);
+ B->set_trim_start(ContentTime(13));
+
+ A->set_video_frame_rate(24);
+ B->set_video_frame_rate(24);
+ film->set_video_frame_rate(25);
+
+ make_and_verify_dcp(film, { dcp::VerificationNote::Code::MISSING_CPL_METADATA });
+ check_mxf_audio_file("test/data/trimmed_sound_mix_bug_13_frame_rate_change.mxf", dcp_file(film, "pcm_"));
+}
+