Replace Time::frames with Time::frames_round and Time::frames_floor.
[dcpomatic.git] / src / lib / analyse_audio_job.cc
index 2f48d12a925b50502aa7051a551d783e365e49cd..e997c03c57b729ce274ec46b0a49a63ca8d9bd81 100644 (file)
@@ -66,7 +66,7 @@ AnalyseAudioJob::run ()
        shared_ptr<Player> player (new Player (_film, _playlist));
        player->set_ignore_video ();
 
-       int64_t const len = _playlist->length().frames (_film->audio_frame_rate());
+       int64_t const len = _playlist->length().frames_round (_film->audio_frame_rate());
        _samples_per_point = max (int64_t (1), len / _num_points);
 
        _current.resize (_film->audio_channels ());