Commit c4bf85e5 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: avi: use VLC_TS0 for offset

(cherry picked from commit 1d22c247f752a2024a8c43ccd7ec84ac048d22d0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e8241821
......@@ -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