diff options
author | wm4 <wm4@nowhere> | 2015-11-11 21:25:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-11 21:25:08 +0100 |
commit | 977869a804b0fca932bcbe1d26b756d2e9860d0f (patch) | |
tree | 6c1ff5ea45d483c746e091337b7d6307b5d72ca2 /demux/demux_lavf.c | |
parent | 7c4fe02d01322ad09954d63522c0c8bf3f06b3d1 (diff) | |
download | mpv-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/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 4 |
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: { |