mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +00:00
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.
This commit is contained in:
parent
7c4fe02d01
commit
977869a804
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user