summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-01-05 08:41:09 +0100
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commitb8f282fd32223057bb7db3615b0600047dd54425 (patch)
treea1904351e7f112241db1c30a1a64231f974e212a
parent9f8d9c218bd72dddcdaf27f1349370d3eff56b93 (diff)
downloadmpv-b8f282fd32223057bb7db3615b0600047dd54425.tar.bz2
mpv-b8f282fd32223057bb7db3615b0600047dd54425.tar.xz
demux_edl: explicitly error on unknown header types
I think this is better. On the other hand, this is a behavior change. The EDL "spec" says that unknown fields are igored. But strictly speaking, unknown headers are not "fields", but unknown entities.
-rw-r--r--demux/demux_edl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_edl.c b/demux/demux_edl.c
index 748933ec94..98e31a79f2 100644
--- a/demux/demux_edl.c
+++ b/demux/demux_edl.c
@@ -153,6 +153,8 @@ static struct tl_parts *parse_edl(bstr str)
struct tl_parts *ntl = talloc_zero(tl, struct tl_parts);
tl->next = ntl;
tl = ntl;
+ } else {
+ goto error;
}
} else {
if (!p.filename)