From c57660fbf77eb29ddd2187f84b7450f601069b05 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 7 May 2014 22:01:17 +0200 Subject: options: add --hr-seek-framedrop option This allows disabling of decoder framedrop during hr-seek. It's basically another useless option, but it will help exploring whether this framedropping really makes seeking faster, or whether disabling it helps with precise seeking (especially frame backstepping). --- player/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 688384d1de..128e2916ae 100644 --- a/player/video.c +++ b/player/video.c @@ -318,7 +318,8 @@ static int decode_image(struct MPContext *mpctx) if (pkt && pkt->pts != MP_NOPTS_VALUE) pkt->pts += mpctx->video_offset; if ((pkt && pkt->pts >= mpctx->hrseek_pts - .005) || - d_video->has_broken_packet_pts) + d_video->has_broken_packet_pts || + !mpctx->opts->hr_seek_framedrop) { mpctx->hrseek_framedrop = false; } -- cgit v1.2.3