/* send complete packet to decoder */
block_t *p_gather = block_ChainGather( tk->p_frame );
+ tk->i_time = p_gather->i_dts;
+
if( p_sys->i_time < 0 )
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, tk->i_time );
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, tk->i_time+1 );
es_out_Send( p_demux->out, tk->p_es, p_gather );
if( tk->p_frame == NULL )
{
- tk->i_time =
- ( (mtime_t)i_pts + i_payload * (mtime_t)i_pts_delta );
-
- p_frag->i_pts = tk->i_time;
-
+ p_frag->i_pts = i_pts + i_payload * (mtime_t)i_pts_delta;
if( tk->i_cat != VIDEO_ES )
p_frag->i_dts = p_frag->i_pts;
else