[vlc-commits] MKV: support WebVTT subtitles embedded
Jean-Baptiste Kempf
git at videolan.org
Wed Jul 15 23:32:32 CEST 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 15 23:32:10 2015 +0200| [5ef7a61e949c2dbfd4f149a7d108a6aea05ac3e4] | committer: Jean-Baptiste Kempf
MKV: support WebVTT subtitles embedded
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ef7a61e949c2dbfd4f149a7d108a6aea05ac3e4
---
modules/demux/mkv/matroska_segment_parse.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 4229869..185fecc6 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1828,6 +1828,11 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
{
p_tk->fmt.i_codec = VLC_CODEC_BD_PG;
}
+ else if( !strcmp( p_tk->psz_codec, "D_WEBVTT/SUBTITLES" ) )
+ {
+ p_tk->fmt.i_codec = VLC_CODEC_SUBT;
+ p_tk->fmt.subs.psz_encoding = strdup( "UTF-8" );
+ }
else if( !strcmp( p_tk->psz_codec, "B_VOBBTN" ) )
{
p_tk->fmt.i_cat = NAV_ES;
More information about the vlc-commits
mailing list