timecode: allow specific rounding routines

This commit is contained in:
itsmattkc
2021-07-08 11:39:29 -07:00
parent df42696bdb
commit 0c04bcf045
4 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ QVector<rational> FrameHashCache::GetFrameListFromTimeRange(TimeRangeList range_
QVector<rational> times;
foreach (const TimeRange &range, range_list) {
rational frame = Timecode::snap_time_to_timebase(range.in(), timebase, true);
rational frame = Timecode::snap_time_to_timebase(range.in(), timebase, Timecode::kCeil);
while (frame < range.out()) {
times.append(frame);