[vlc-commits] demux: ts: map HDMV subtitles

Francois Cartegnie git at videolan.org
Sat Jan 28 14:03:45 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 27 18:45:01 2017 +0100| [80456167c4ce53ab786845327842d8d1d1da7a6d] | committer: Francois Cartegnie

demux: ts: map HDMV subtitles

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80456167c4ce53ab786845327842d8d1d1da7a6d
---

 modules/demux/mpeg/ts_psi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 64fa1a6..3f62c60 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -1184,8 +1184,11 @@ static bool PMTSetupEsHDMV( demux_t *p_demux, ts_pes_es_t *p_es,
         p_fmt->i_codec = VLC_CODEC_BD_PG;
         break;
     case 0x91: /* Interactive graphics */
-    case 0x92: /* Subtitle */
         return false;
+    case 0x92: /* Subtitle */
+        p_fmt->i_cat = SPU_ES;
+        p_fmt->i_codec = VLC_CODEC_BD_TEXT;
+        break;
     case 0xEA:
         p_fmt->i_cat = VIDEO_ES;
         p_fmt->i_codec = VLC_CODEC_VC1;



More information about the vlc-commits mailing list