mirror of
https://github.com/mpv-player/mpv
synced 2025-03-07 22:57:42 +00:00
input: skip BOM in input.conf
This commit is contained in:
parent
fed69f3637
commit
a09329bcf7
@ -1450,6 +1450,7 @@ static int parse_config_file(struct input_ctx *ictx, char *file, bool warn)
|
||||
MP_ERR(ictx, "Can't open input config file %s.\n", file);
|
||||
goto done;
|
||||
}
|
||||
stream_skip_bom(s);
|
||||
bstr data = stream_read_complete(s, tmp, 1000000);
|
||||
if (data.start) {
|
||||
MP_VERBOSE(ictx, "Parsing input config file %s\n", file);
|
||||
|
Loading…
Reference in New Issue
Block a user