Skip to content

Commit

Permalink
viewer: fix invalid remaining length when queuing
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Jul 26, 2022
1 parent 66152b4 commit f0ebbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/widget/viewer/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f0ebbda

Please sign in to comment.