From: Steve Lhomme Date: Mon, 16 May 2005 16:00:46 +0000 (+0000) Subject: mkv.cpp: fix duration for text subs X-Git-Tag: 0.8.2~195 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2ba01223f1c61b35a7ca5dac269e8744863b08f9;p=vlc mkv.cpp: fix duration for text subs --- diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp index 2685796668..ead249ba5c 100644 --- a/modules/demux/mkv.cpp +++ b/modules/demux/mkv.cpp @@ -1859,7 +1859,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts, 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; }