Commit a6a7af28 authored by Laurent Aimar's avatar Laurent Aimar

Fixed initial timestamp value in xa demuxer.

parent 5a0c175b
...@@ -176,11 +176,12 @@ static int Demux( demux_t *p_demux ) ...@@ -176,11 +176,12 @@ static int Demux( demux_t *p_demux )
} }
i_frames = p_block->i_buffer / p_sys->fmt.audio.i_bytes_per_frame; i_frames = p_block->i_buffer / p_sys->fmt.audio.i_bytes_per_frame;
p_block->i_dts = p_block->i_pts = p_block->i_dts = p_block->i_pts = VLC_TS_0 + date_Get( &p_sys->pts );
date_Increment( &p_sys->pts,
i_frames * p_sys->fmt.audio.i_frame_length );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block->i_pts ); es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block->i_pts );
es_out_Send( p_demux->out, p_sys->p_es, p_block ); es_out_Send( p_demux->out, p_sys->p_es, p_block );
date_Increment( &p_sys->pts, i_frames * p_sys->fmt.audio.i_frame_length );
return 1; return 1;
} }
......
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