[vlc-commits] demux: avi: use VLC_TS0 for offset

Francois Cartegnie git at videolan.org
Wed Jul 23 04:36:58 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 18 22:14:59 2014 +0900| [1d22c247f752a2024a8c43ccd7ec84ac048d22d0] | committer: Francois Cartegnie

demux: avi: use VLC_TS0 for offset

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d22c247f752a2024a8c43ccd7ec84ac048d22d0
---

 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