sub: interpret "text" subtitles as srt

Most players will interpret HTML-style tags (aka srt) in almost any kind
of text subtitles; make mpv do this too.
This commit is contained in:
wm4 2016-04-06 12:36:13 +02:00
parent 796b32c4d7
commit a606b92f4a
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ static const char *get_lavc_format(const char *format)
// For the hack involving parse_webvtt().
if (format && strcmp(format, "webvtt-webm") == 0)
format = "webvtt";
// Most text subtitles are srt/html style anyway.
if (format && strcmp(format, "text") == 0)
format = "subrip";
return format;
}