mirror of https://github.com/mpv-player/mpv
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:
parent
796b32c4d7
commit
a606b92f4a
|
@ -47,6 +47,9 @@ static const char *get_lavc_format(const char *format)
|
||||||
// For the hack involving parse_webvtt().
|
// For the hack involving parse_webvtt().
|
||||||
if (format && strcmp(format, "webvtt-webm") == 0)
|
if (format && strcmp(format, "webvtt-webm") == 0)
|
||||||
format = "webvtt";
|
format = "webvtt";
|
||||||
|
// Most text subtitles are srt/html style anyway.
|
||||||
|
if (format && strcmp(format, "text") == 0)
|
||||||
|
format = "subrip";
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue