[vlc-commits] demux: avi: use VLC_TS0 for offset
Francois Cartegnie
git at videolan.org
Sat Jul 26 01:30:24 CEST 2014
vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 18 22:14:59 2014 +0900| [c4bf85e5574b8f1cba510c0d8c5436a3aeb068cb] | committer: Jean-Baptiste Kempf
demux: avi: use VLC_TS0 for offset
(cherry picked from commit 1d22c247f752a2024a8c43ccd7ec84ac048d22d0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=c4bf85e5574b8f1cba510c0d8c5436a3aeb068cb
---
modules/demux/avi/avi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 4c4b466..902af36 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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 *** */
More information about the vlc-commits
mailing list