From ac9b09b847b5445d6a4605394d0e31a70dd6ba59 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:14:24 +0000 Subject: [PATCH] Jump to the end of the video rather than the frame before the current one when trying to seek to the next keyframe after the last keyframe Originally committed to SVN as r6031. --- aegisub/src/command/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/command/video.cpp b/aegisub/src/command/video.cpp index f49aad6bc..103a4eaec 100644 --- a/aegisub/src/command/video.cpp +++ b/aegisub/src/command/video.cpp @@ -383,7 +383,7 @@ struct video_frame_next_keyframe : public validator_video_loaded { std::vector const& kf = c->videoController->GetKeyFrames(); std::vector::const_iterator pos = lower_bound(kf.begin(), kf.end(), c->videoController->GetFrameN() + 1); - c->videoController->JumpToFrame(pos == kf.end() ? c->videoController->GetFrameN() - 1 : *pos); + c->videoController->JumpToFrame(pos == kf.end() ? c->videoController->GetLength() - 1 : *pos); } };