viewer: fix invalid remaining length when queuing

This commit is contained in:
itsmattkc
2022-07-26 14:08:49 -07:00
parent 66152b4aa3
commit f0ebbda16c
+1 -1
View File
@@ -1048,7 +1048,7 @@ int ViewerWidget::DeterminePlaybackQueueSize()
end_ts = 0;
}
int remaining_frames = (end_ts - GetTimestamp()) / playback_speed_;
int remaining_frames = (end_ts - GetTimestamp() - 1) / playback_speed_;
// Generate maximum queue
int max_frames = qCeil(kVideoPlaybackInterval.toDouble() / timebase().toDouble());