[vlc-devel] commit: MKV: support of PGS (BD subs) in .mkv (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jan 28 01:38:48 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 28 00:08:43 2010 +0100| [2e1f2e3d78d348c5df60d79d33a0769212b2e1e4] | committer: Jean-Baptiste Kempf 

MKV: support of PGS (BD subs) in .mkv

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

 modules/demux/mkv/matroska_segment.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index db9ce1c..abb32c8 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1154,6 +1154,10 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
                 }
             }
         }
+        else if( !strcmp( tracks[i_track]->psz_codec, "S_HDMV/PGS" ) )
+        {
+            tracks[i_track]->fmt.i_codec = VLC_CODEC_BD_PG;
+        }
         else if( !strcmp( tracks[i_track]->psz_codec, "B_VOBBTN" ) )
         {
             tracks[i_track]->fmt.i_cat = NAV_ES;




More information about the vlc-devel mailing list