diff options
author | wm4 <wm4@nowhere> | 2017-01-24 08:57:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-24 08:57:51 +0100 |
commit | 63b34143a532b297201af60eea354a7bca3bb48c (patch) | |
tree | 7cd1a2bfc6ef9d3e2fbf22bc9bd2c93a476dde92 /demux | |
parent | 7be495b369fa9924d0595a2ef0d2a0d1f662ba76 (diff) | |
download | mpv-63b34143a532b297201af60eea354a7bca3bb48c.tar.bz2 mpv-63b34143a532b297201af60eea354a7bca3bb48c.tar.xz |
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.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/cue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |