From 89eacf8131827533c956a9a10ec1519d2ebdcc31 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Sat, 2 Mar 2019 18:14:57 -0500 Subject: demux_edl: don't assume data follows a comment line There could be another comment line or the end of the file. Fixes #6529. --- demux/demux_edl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demux') diff --git a/demux/demux_edl.c b/demux/demux_edl.c index b724ffa592..7f85568eae 100644 --- a/demux/demux_edl.c +++ b/demux/demux_edl.c @@ -80,8 +80,10 @@ static struct tl_parts *parse_edl(bstr str) { struct tl_parts *tl = talloc_zero(NULL, struct tl_parts); while (str.len) { - if (bstr_eatstart0(&str, "#")) + if (bstr_eatstart0(&str, "#")) { bstr_split_tok(str, "\n", &(bstr){0}, &str); + continue; + } if (bstr_eatstart0(&str, "\n") || bstr_eatstart0(&str, ";")) continue; bool is_header = bstr_eatstart0(&str, "!"); -- cgit v1.2.3