summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-11 21:25:08 +0100
committerwm4 <wm4@nowhere>2015-11-11 21:25:08 +0100
commit977869a804b0fca932bcbe1d26b756d2e9860d0f (patch)
tree6c1ff5ea45d483c746e091337b7d6307b5d72ca2 /demux
parent7c4fe02d01322ad09954d63522c0c8bf3f06b3d1 (diff)
downloadmpv-977869a804b0fca932bcbe1d26b756d2e9860d0f.tar.bz2
mpv-977869a804b0fca932bcbe1d26b756d2e9860d0f.tar.xz
demux_lavf: mark ASS tracks as always UTF-8
Stops mpv from trying to run a subtitle charset detector on .ass files loaded by libavformat.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index eeed7a1b9a..2d12f5cfa2 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -612,6 +612,10 @@ static void handle_stream(demuxer_t *demuxer, int i)
sh_sub->frame_based = 23.976;
}
}
+
+ if (matches_avinputformat_name(priv, "ass"))
+ sh_sub->is_utf8 = true;
+
break;
}
case AVMEDIA_TYPE_ATTACHMENT: {