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).
This commit is contained in:
wm4
2014-05-07 22:01:17 +02:00
parent 2a783d7035
commit c57660fbf7
5 changed files with 16 additions and 2 deletions

View File

@@ -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;
}