From aaf4efd0123837211d42f001580f34739dfe1d9c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 May 2019 17:33:48 +0200 Subject: player: fix --hr-seek-demuxer-offset with backward playback --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/playloop.c b/player/playloop.c index 8bf5325986..de02728061 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -323,7 +323,7 @@ static void mp_seek(MPContext *mpctx, struct seek_params seek) offset += get_track_seek_offset(mpctx, mpctx->tracks[n]); hr_seek_offset = MPMAX(hr_seek_offset, -offset); } - demux_pts -= hr_seek_offset; + demux_pts -= hr_seek_offset * play_dir; demux_flags = (demux_flags | SEEK_HR) & ~SEEK_FORWARD; // For HR seeks in backward playback mode, the correct seek rounding // direction is forward instead of backward. -- cgit v1.2.3