Replace Time::frames with Time::frames_round and Time::frames_floor.
[dcpomatic.git] / src / lib / transcode_job.cc
index 4a2d768f479c7c67fa600ef46c56954d5a60bae2..122f7f79921545a79522c40bb185f3b6cccf5b1f 100644 (file)
@@ -123,5 +123,5 @@ TranscodeJob::remaining_time () const
        }
 
        /* Compute approximate proposed length here, as it's only here that we need it */
-       return (_film->length().frames (_film->video_frame_rate ()) - t->video_frames_out()) / fps;
+       return (_film->length().frames_round (_film->video_frame_rate ()) - t->video_frames_out()) / fps;
 }