+
+
+/** Test a situation that used to crash because of a sub-sample rounding confusion
+ * caused by a trim.
+ */
+
+BOOST_AUTO_TEST_CASE (silence_padding_test2)
+{
+ Cleanup cl;
+
+ auto content = make_shared<FFmpegContent>(TestPaths::private_data() / "cars.mov");
+ auto film = new_test_film2 ("silence_padding_test2", { content }, &cl);
+
+ film->set_video_frame_rate (24);
+ content->set_trim_start (dcpomatic::ContentTime(4003));
+
+ make_and_verify_dcp (film);
+
+ cl.run ();
+}