From a606b92f4a6fab12e94ad687f65d4d65f52b6d59 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 Apr 2016 12:36:13 +0200 Subject: 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. --- sub/lavc_conv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sub/lavc_conv.c') diff --git a/sub/lavc_conv.c b/sub/lavc_conv.c index 73030207ef..3e0165a84c 100644 --- a/sub/lavc_conv.c +++ b/sub/lavc_conv.c @@ -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; } -- cgit v1.2.3