From aa1a383342f72fb0dfb1fb016535735bc0480e7e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Jul 2014 23:40:48 +0200 Subject: sub: add detection via BOM Useful for Windows stuff. Actually, ENCA support should catch this, but, well, whatever, everyone seems to hate ENCA. Detection with BOM is trivial, although it needs some hackery to integrate it with the existing autodetection support. For one, change the default value of --sub-codepage to make this easier. Probably fixes issue #937 (the second part). --- options/options.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index fd37d63197..1e3c98c087 100644 --- a/options/options.c +++ b/options/options.c @@ -636,11 +636,7 @@ const struct MPOpts mp_default_opts = { .ass_shaper = 1, .use_embedded_fonts = 1, .sub_fix_timing = 1, -#if HAVE_ENCA - .sub_cp = "enca", -#else - .sub_cp = "UTF-8:UTF-8-BROKEN", -#endif + .sub_cp = "auto", .hwdec_codecs = "h264,vc1,wmv3", -- cgit v1.2.3