diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-12 15:20:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-12 15:20:03 +0100 |
| commit | 7698ee82874ee9cb5fa4b251a0a7e7e2df81fcfb (patch) | |
| tree | ff100fa72b956334e82b276859b79de4556f1acc | |
| parent | 19c8f785894306bfa7998775d462f7f80cde8eaf (diff) | |
Make ::length return rounded-up length.
| -rw-r--r-- | src/lib/film.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 57a4decd1..0e244c308 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1113,7 +1113,7 @@ Film::move_content_later (shared_ptr<Content> c) DCPTime Film::length () const { - return _playlist->length (); + return _playlist->length().ceil(video_frame_rate()); } int @@ -1456,7 +1456,7 @@ list<DCPTimePeriod> Film::reels () const { list<DCPTimePeriod> p; - DCPTime const len = length().ceil (video_frame_rate ()); + DCPTime const len = length(); switch (reel_type ()) { case REELTYPE_SINGLE: |
