summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2024-02-18 13:17:13 +0100
committersfan5 <sfan5@live.de>2024-02-23 21:37:22 +0100
commitb564d5916ee200c70cccb5ae77c677f5ce74dba0 (patch)
treef809adaeb88ec5e77adb53a3f2701ae0e5869442
parent4e73602ae5374f271dd638a4eda4f9c95d196488 (diff)
downloadmpv-b564d5916ee200c70cccb5ae77c677f5ce74dba0.tar.bz2
mpv-b564d5916ee200c70cccb5ae77c677f5ce74dba0.tar.xz
command: don't add SUB_SEEK_OFFSET twice with sub-seek
The name SD_CTRL_SUB_STEP is misleading, but it is also used for sub-seek, and sub/sd_ass.c already adds SUB_SEEK_OFFSET with it.
-rw-r--r--player/command.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c
index 3273684227..712c081d04 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5445,10 +5445,6 @@ static void cmd_sub_step_seek(void *p)
track_ind == 0 ? "sub-delay" : "secondary-sub-delay",
cmd->on_osd);
} else {
- // We can easily seek/step to the wrong subtitle line (because
- // video frame PTS and sub PTS rarely match exactly). Add an
- // arbitrary forward offset as a workaround.
- a[0] += SUB_SEEK_OFFSET;
mark_seek(mpctx);
queue_seek(mpctx, MPSEEK_ABSOLUTE, a[0], MPSEEK_EXACT,
MPSEEK_FLAG_DELAY);