Commit 90322f67 authored by sigmunau's avatar sigmunau

modules/demux/mkv.cpp:

 * fixed timing with vobsubs
parent f67d9f1a
......@@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mkv.cpp,v 1.30 2003/10/29 23:36:59 sigmunau Exp $
* $Id: mkv.cpp,v 1.31 2003/10/30 00:12:02 sigmunau Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -1685,7 +1685,11 @@ static void BlockDecode( input_thread_t *p_input, KaxBlock *block, mtime_t i_pts
input_DecodePES( tk.p_es->p_decoder_fifo, p_pes );
/* use time stamp only for first block */
i_pts = 0;
if( !strcmp( tk.psz_codec, "S_VOBSUB" ) )
{
i_pts += 1000 * i_duration;
}
else i_pts = 0;
}
#undef tk
......
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