mirror of https://github.com/mpv-player/mpv
demux_edl: warn if no_clip is used with multiple parts
Well whatever.
This commit is contained in:
parent
921f316281
commit
1d53a8f2e7
|
@ -146,7 +146,8 @@ The current implementation will
|
|||
Another header part of this mechanism is ``no_clip``. This header is similar
|
||||
to ``mp4_dash``, but does not include on-demand opening/closing of segments,
|
||||
and does not support init segments. It also exists solely to support internal
|
||||
ytdl requirements.
|
||||
ytdl requirements. Using ``no_clip`` with segments is not recommended and
|
||||
probably breaks. ``mp4_dash`` already implicitly does a variant of ``no_clip``.
|
||||
|
||||
The ``mp4_dash`` and ``no_clip`` headers are not part of the core EDL format.
|
||||
They may be changed or removed at any time, depending on mpv's internal
|
||||
|
|
|
@ -429,6 +429,9 @@ static struct timeline_par *build_timeline(struct timeline *root,
|
|||
tl->num_parts++;
|
||||
}
|
||||
|
||||
if (tl->no_clip && tl->num_parts > 1)
|
||||
MP_WARN(root, "Multiple parts with no_clip. Undefined behavior ahead.\n");
|
||||
|
||||
if (!tl->track_layout) {
|
||||
// Use a heuristic to select the "broadest" part as layout.
|
||||
for (int n = 0; n < parts->num_parts; n++) {
|
||||
|
|
Loading…
Reference in New Issue