diff --git a/aegisub/src/command/video.cpp b/aegisub/src/command/video.cpp index 5430c87ea..45b73a756 100644 --- a/aegisub/src/command/video.cpp +++ b/aegisub/src/command/video.cpp @@ -455,7 +455,7 @@ struct video_frame_prev_keyframe : public validator_video_loaded { std::vector const& kf = c->videoController->GetKeyFrames(); std::vector::const_iterator pos = lower_bound(kf.begin(), kf.end(), frame); - if (frame != 0 && (pos == kf.end() || *pos == frame)) + if (pos != kf.begin()) --pos; c->videoController->JumpToFrame(*pos);