From 596231bc971683f271e9243b9b381c10c4877584 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 14 Oct 2014 13:29:38 +0200 Subject: player: fix --frames This could produce an extra frame, because reaching the maximum merely signals the playloop to exit, without strictly enforcing the limit. Fixes #1181. CC: @mpv-player/stable --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index e8409e90b6..9f0fb58313 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -765,7 +765,7 @@ static void handle_sstep(struct MPContext *mpctx) if (mpctx->video_status >= STATUS_EOF) { if (mpctx->max_frames >= 0) - mpctx->stop_play = AT_END_OF_FILE; + mpctx->stop_play = AT_END_OF_FILE; // force EOF even if audio left if (mpctx->step_frames > 0 && !mpctx->paused) pause_player(mpctx); } -- cgit v1.2.3