Commit 1d22c247 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: avi: use VLC_TS0 for offset

parent d92e2213
......@@ -991,7 +991,7 @@ static int Demux_Seekable( demux_t *p_demux )
}
/* wait for the good time */
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_time + 1 );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_time );
p_sys->i_time += 25*1000; /* read 25ms */
/* init toread */
......@@ -1288,7 +1288,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
unsigned int i_stream;
unsigned int i_packet;
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_time + 1 );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_time );
/* *** find master stream for data packet skipping algo *** */
/* *** -> first video, if any, or first audio ES *** */
......
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