diff options
author | wm4 <wm4@nowhere> | 2014-02-19 00:05:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-19 00:05:14 +0100 |
commit | d29661af8a3bbb134ded311f36f38522c6bf3a63 (patch) | |
tree | 0a8101bf3f0993a7c1035c3122eb886db10a6234 /player | |
parent | 8567f1a997d36fcd32faf7da0b7ae6a1f9f86bed (diff) | |
download | mpv-d29661af8a3bbb134ded311f36f38522c6bf3a63.tar.bz2 mpv-d29661af8a3bbb134ded311f36f38522c6bf3a63.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')
-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); |