Commit 39d87a89 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

mkv.cpp: fix stuttering issue on timestamp (could be cleaner)

parent e6aa9d09
......@@ -1420,14 +1420,15 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
}
#endif
// TODO implement correct timestamping when B frames are used
if( tk.fmt.i_cat != VIDEO_ES )
{
p_block->i_dts = p_block->i_pts = i_pts;
}
else
{
p_block->i_pts = i_pts;
p_block->i_dts = 0;
p_block->i_dts = i_pts;
p_block->i_pts = 0;
}
if( tk.fmt.i_cat == SPU_ES && strcmp( tk.psz_codec, "S_VOBSUB" ) )
......
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