From f24452ee5fe7af655a16d4e1a3bb1c87a54596cc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 22 Oct 2015 14:44:41 +0100 Subject: Somewhat hackily fix rounding of reel lengths. --- src/lib/video_content.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/video_content.cc') diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index a9b286315..1e8b9034a 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -584,6 +584,9 @@ list VideoContent::reel_split_points () const { list t; - t.push_back (position ()); + shared_ptr film = _film.lock (); + DCPOMATIC_ASSERT (film); + /* XXX: this is questionable; perhaps the position should be forced to be on a frame boundary */ + t.push_back (position().round_up (film->video_frame_rate())); return t; } -- cgit v1.2.3