Make ::length return rounded-up length.
authorCarl Hetherington <cth@carlh.net>
Wed, 12 Jul 2017 14:20:03 +0000 (15:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 12 Jul 2017 14:20:03 +0000 (15:20 +0100)
src/lib/film.cc

index 57a4dec..0e244c3 100644 (file)
@@ -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: