Replace Time::frames with Time::frames_round and Time::frames_floor.
[dcpomatic.git] / src / lib / writer.cc
index ff6e4f63cba6b0caf44d81030d64d816b55c2a97..863b49959d750495ff8fb72688eb72ebfe72b95d 100644 (file)
@@ -396,7 +396,7 @@ try
 
                        shared_ptr<Job> job = _job.lock ();
                        DCPOMATIC_ASSERT (job);
-                       int64_t total = _film->length().frames (_film->video_frame_rate ());
+                       int64_t total = _film->length().frames_round (_film->video_frame_rate ());
                        if (_film->three_d ()) {
                                /* _full_written and so on are incremented for each eye, so we need to double the total
                                   frames to get the correct progress.