onto frame boundaries. ceil() can creep upwards with rounding error,
which I have seen happen over a save/load.
void
VideoContent::modify_position (DCPTime& pos) const
{
- pos = pos.ceil (_parent->film()->video_frame_rate());
+ pos = pos.round (_parent->film()->video_frame_rate());
}
void
VideoContent::modify_trim_start (ContentTime& trim) const
{
if (_parent->video_frame_rate()) {
- trim = trim.ceil (_parent->video_frame_rate().get());
+ trim = trim.round (_parent->video_frame_rate().get());
}
}