Commit 6a16055a authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

MKV: Always set an i_pts in a lace otherwise it disturbs seeking performance

Using VLC_PTS_INVALID disturbs seeking.

It only applies to audio frames which are meant to be contiguous.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d4b36b75
...@@ -719,10 +719,8 @@ msg_Dbg( p_demux, "block (track=%d) i_dts: %"PRId64" / i_pts: %"PRId64, tk->i_nu ...@@ -719,10 +719,8 @@ msg_Dbg( p_demux, "block (track=%d) i_dts: %"PRId64" / i_pts: %"PRId64, tk->i_nu
es_out_Send( p_demux->out, tk->p_es, p_block ); es_out_Send( p_demux->out, tk->p_es, p_block );
/* use time stamp only for first block */ // prepare the pts for the next frame in the lace
i_pts = ( tk->i_default_duration )? i_pts += tk->i_default_duration ? tk->i_default_duration : 1;
i_pts + ( mtime_t )tk->i_default_duration:
VLC_TS_INVALID;
} }
} }
......
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