Commit 97140ee9 authored by Laurent Aimar's avatar Laurent Aimar

Improved a bit more asf pcr.

parent fbe14bc4
......@@ -594,8 +594,10 @@ static int DemuxPacket( demux_t *p_demux )
/* 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 );
......@@ -615,11 +617,7 @@ static int DemuxPacket( demux_t *p_demux )
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
......
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