summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/timeline/tl_mpv_edl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/timeline/tl_mpv_edl.c b/player/timeline/tl_mpv_edl.c
index 651c937c23..2cc6050d08 100644
--- a/player/timeline/tl_mpv_edl.c
+++ b/player/timeline/tl_mpv_edl.c
@@ -164,7 +164,7 @@ static void copy_chapters(struct chapter **chapters, int *num_chapters,
double time = demuxer_chapter_time(src, n);
if (time >= start && time <= start + len) {
struct chapter ch = {
- .start = dest_offset + time,
+ .start = dest_offset + time - start,
.name = talloc_steal(*chapters, demuxer_chapter_name(src, n)),
};
MP_TARRAY_APPEND(NULL, *chapters, *num_chapters, ch);