mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 22:02:59 +00:00
edl: fix offset of user-visible chapters
Basically, chapter marks and chapter seek-points were incorrect, while the rest worked.
This commit is contained in:
parent
8567f1a997
commit
d29661af8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user