]> git.sesse.net Git - vlc/blobdiff - modules/demux/mkv.cpp
* ALL: use p_block->i_length for text subtitles duration (instead of the i_dts hack).
[vlc] / modules / demux / mkv.cpp
index abf3a342795c031f8598bd6e2559be523caaf95c..65b0c067bc0badcbe6898d76dea272f18d4db4a7 100644 (file)
@@ -1532,14 +1532,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts, mtime
 
         if( tk.fmt.i_cat == SPU_ES && strcmp( tk.psz_codec, "S_VOBSUB" ) )
         {
-            if( i_duration > 0 )
-            {
-                p_block->i_dts += i_duration * 1000;
-            }
-            else
-            {
-                p_block->i_dts = 0;
-            }
+            p_block->i_length = i_duration * 1000;
         }
         es_out_Send( p_demux->out, tk.p_es, p_block );