From 63b34143a532b297201af60eea354a7bca3bb48c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Jan 2017 08:57:51 +0100 Subject: cue: accept lower-case cue commands Some files appear to use them. In the sample I've seen, one field was "Performer" instead of "PERFORMER". This change is slightly risky, because it increases the chance of misdetecting other formats as cue files. Fixes #4057. --- demux/cue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/cue.c b/demux/cue.c index 69f30f4871..9dbde71062 100644 --- a/demux/cue.c +++ b/demux/cue.c @@ -70,7 +70,7 @@ static enum cue_command read_cmd(struct bstr *data, struct bstr *out_params) return CUE_EMPTY; for (int n = 0; cue_command_strings[n].command != -1; n++) { struct bstr name = bstr0(cue_command_strings[n].text); - if (bstr_startswith(line, name)) { + if (bstr_case_startswith(line, name)) { struct bstr rest = bstr_cut(line, name.len); if (rest.len && !strchr(WHITESPACE, rest.start[0])) continue; -- cgit v1.2.3