From a655432bbe2ff7e22005220b3897a0a75e14f2ef Mon Sep 17 00:00:00 2001 From: fwr Date: Mon, 4 Jan 2016 13:56:48 +0000 Subject: [PATCH] demux_lavf: re-enable codepage autodetection for .ass There are a lot of incorrectly encoded subtitles with .ass extension and non-ass subtitles (srt, ssa) with such extension, so we need to try codepage detection even for .ass. Signed-off-by: wm4 --- demux/demux_lavf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 14860a92af..f9586c4788 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -140,10 +140,9 @@ static const struct format_hack format_hacks[] = { TEXTSUB("aqtitle"), TEXTSUB("jacosub"), TEXTSUB("microdvd"), TEXTSUB("mpl2"), TEXTSUB("mpsub"), TEXTSUB("pjs"), TEXTSUB("realtext"), TEXTSUB("sami"), TEXTSUB("srt"), TEXTSUB("stl"), TEXTSUB("subviewer"), - TEXTSUB("subviewer1"), TEXTSUB("vplayer"), + TEXTSUB("subviewer1"), TEXTSUB("vplayer"), TEXTSUB("ass"), TEXTSUB_UTF8("webvtt"), - TEXTSUB_UTF8("ass"), // Useless non-sense, sometimes breaks MLP2 subreader.c fallback BLACKLIST("tty"),