From a09329bcf7e30fb73cc082d4099cdc53b3661131 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 Jul 2014 21:25:32 +0200 Subject: input: skip BOM in input.conf --- input/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input/input.c b/input/input.c index ebcbaf208f..9f2567d478 100644 --- a/input/input.c +++ b/input/input.c @@ -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); -- cgit v1.2.3