diff options
author | wm4 <wm4@nowhere> | 2014-05-07 22:01:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-07 22:05:30 +0200 |
commit | c57660fbf77eb29ddd2187f84b7450f601069b05 (patch) | |
tree | f7a1b130d349a914ebb7e32e5229c694479ae5da /player/video.c | |
parent | 2a783d70351f358d406641fa08448770bb1651f4 (diff) | |
download | mpv-c57660fbf77eb29ddd2187f84b7450f601069b05.tar.bz2 mpv-c57660fbf77eb29ddd2187f84b7450f601069b05.tar.xz |
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).
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |