Commit 2ba01223 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: fix duration for text subs

parent 52da2627
...@@ -1859,7 +1859,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts, ...@@ -1859,7 +1859,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
p_block->i_pts = 0; p_block->i_pts = 0;
} }
if ( strcmp( tk->psz_codec, "S_VOBSUB" ) ) if( tk->fmt.i_cat == SPU_ES && strcmp( tk->psz_codec, "S_VOBSUB" ) )
{ {
p_block->i_length = i_duration * 1000; p_block->i_length = i_duration * 1000;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment