mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
demux_timeline: fix nested timelines
You can e.g. reference ordered chapters or other EDL files in EDLs. There were some bugs left which broke this in some cases.
This commit is contained in:
parent
d549c4e402
commit
297fdcc095
@ -31,9 +31,8 @@ estimated remaining duration of the source file is used.
|
||||
|
||||
Note::
|
||||
|
||||
mpv can't use ordered chapter files in EDL entries. Usage of relative or
|
||||
absolute paths as well as any protocol prefixes is prevented for security
|
||||
reasons.
|
||||
Usage of relative or absolute paths as well as any protocol prefixes may be
|
||||
prevented for security reasons.
|
||||
|
||||
|
||||
Syntax of mpv EDL files
|
||||
|
@ -394,8 +394,7 @@ Program Behavior
|
||||
|
||||
``--merge-files``
|
||||
Pretend that all files passed to mpv are concatenated into a single, big
|
||||
file. This uses timeline/EDL support internally. Note that this won't work
|
||||
for ordered chapter files.
|
||||
file. This uses timeline/EDL support internally.
|
||||
|
||||
``--no-resume-playback``
|
||||
Do not restore playback position from the ``watch_later`` configuration
|
||||
|
@ -698,6 +698,9 @@ static struct demux_packet *dequeue_packet(struct demux_stream *ds)
|
||||
pkt->pts = MP_ADD_PTS(pkt->pts, ds->in->ts_offset);
|
||||
pkt->dts = MP_ADD_PTS(pkt->dts, ds->in->ts_offset);
|
||||
|
||||
pkt->start = MP_ADD_PTS(pkt->start, ds->in->ts_offset);
|
||||
pkt->end = MP_ADD_PTS(pkt->end, ds->in->ts_offset);
|
||||
|
||||
return pkt;
|
||||
}
|
||||
|
||||
|
@ -225,7 +225,7 @@ static int d_fill_buffer(struct demuxer *demuxer)
|
||||
}
|
||||
}
|
||||
|
||||
pkt->new_segment = vs->new_segment;
|
||||
pkt->new_segment |= vs->new_segment;
|
||||
vs->new_segment = false;
|
||||
|
||||
demux_add_packet(vs->sh, pkt);
|
||||
|
Loading…
Reference in New Issue
Block a user