diff options
author | wm4 <wm4@nowhere> | 2014-02-19 00:05:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-11 00:12:25 +0100 |
commit | 496956de3da6aa9599fd29853b8ea271a86bf6ca (patch) | |
tree | 068ee6f15399432ea5b0d04a4ccba88ea073bd15 /player/timeline | |
parent | 483e703793ba50405913511804aa924a739c13bb (diff) | |
download | mpv-496956de3da6aa9599fd29853b8ea271a86bf6ca.tar.bz2 mpv-496956de3da6aa9599fd29853b8ea271a86bf6ca.tar.xz |
edl: fix offset of user-visible chapters
Basically, chapter marks and chapter seek-points were incorrect, while
the rest worked.
Diffstat (limited to 'player/timeline')
-rw-r--r-- | player/timeline/tl_mpv_edl.c | 2 |
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); |