diff options
author | wm4 <wm4@nowhere> | 2016-04-06 12:36:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-06 12:36:13 +0200 |
commit | a606b92f4a6fab12e94ad687f65d4d65f52b6d59 (patch) | |
tree | 021cb5fcd4eabe2f2614827a5faa70e59fce4aaf /sub/lavc_conv.c | |
parent | 796b32c4d73b64517e407402f25cf3f59f17af00 (diff) | |
download | mpv-a606b92f4a6fab12e94ad687f65d4d65f52b6d59.tar.bz2 mpv-a606b92f4a6fab12e94ad687f65d4d65f52b6d59.tar.xz |
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.
Diffstat (limited to 'sub/lavc_conv.c')
-rw-r--r-- | sub/lavc_conv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |