mirror of https://github.com/mpv-player/mpv
demux_edl: don't assume data follows a comment line
There could be another comment line or the end of the file. Fixes #6529.
This commit is contained in:
parent
b9cde8d95c
commit
89eacf8131
|
@ -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, "!");
|
||||
|
|
Loading…
Reference in New Issue