summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/timeline/tl_edl.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/player/timeline/tl_edl.c')
-rw-r--r--mpvcore/player/timeline/tl_edl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpvcore/player/timeline/tl_edl.c b/mpvcore/player/timeline/tl_edl.c
index 69e2402149..b4715e5a1f 100644
--- a/mpvcore/player/timeline/tl_edl.c
+++ b/mpvcore/player/timeline/tl_edl.c
@@ -70,6 +70,10 @@ void build_edl_timeline(struct MPContext *mpctx)
struct bstr *lines = bstr_splitlines(tmpmem, mpctx->demuxer->file_contents);
int linec = MP_TALLOC_ELEMS(lines);
struct bstr header = bstr0("mplayer EDL file, version ");
+ if (bstr_startswith0(lines[0], "mpv EDL v0\n")) {
+ build_mpv_edl_timeline(mpctx);
+ goto out;
+ }
if (!linec || !bstr_startswith(lines[0], header)) {
mp_msg(MSGT_CPLAYER, MSGL_ERR, "EDL: Bad EDL header!\n");
goto out;