[MPlayer-dev-eng] [PATCH] Matroska subtitles (demux_mkv.cpp)

Bruno Lecointre bruno-lecointre at pacbell.net
Sun Aug 24 00:09:53 CEST 2003


Hi,
Another small patch related to subtitles, this time for the Matroska
format. Apparently there is a path in demux_mkv.cpp for which the
duration of subtitles is not set, hence mplayer won't display the
subtitles.

Bruno
-------------- next part --------------
--- demux_mkv.cpp	2003-08-21 02:34:32.000000000 -0700
+++ demux_mkv.cpp.new	2003-08-21 02:37:49.000000000 -0700
@@ -1925,6 +1925,9 @@
                      true);
 
             kbdur = FINDFIRST(l2, KaxBlockDuration);
+            if (kbdur != NULL)
+              block_duration = uint64(*kbdur);
+
             kblock = FINDFIRST(l2, KaxBlock);
             if (kblock != NULL)
               kblock->SetParent(*mkv_d->cluster);


More information about the MPlayer-dev-eng mailing list