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:
wm4
2015-11-11 21:25:08 +01:00
parent 7c4fe02d01
commit 977869a804
+4
View File
@@ -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: {