[vlc-devel] commit: Fixed initial timestamp value in VOC demuxer. (Laurent Aimar )

git version control git at videolan.org
Mon Dec 21 00:02:39 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 22:09:14 2009 +0100| [f587eaf89c5952625dd935ab4e5228d8173e6baf] | committer: Laurent Aimar 

Fixed initial timestamp value in VOC demuxer.

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

 modules/demux/voc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/voc.c b/modules/demux/voc.c
index ccdb63a..3cf8887 100644
--- a/modules/demux/voc.c
+++ b/modules/demux/voc.c
@@ -462,13 +462,14 @@ static int Demux( demux_t *p_demux )
         p_sys->i_silence_countdown -= i;
     }
 
-    p_block->i_dts = p_block->i_pts =
-        date_Increment( &p_sys->pts, p_sys->fmt.audio.i_frame_length * i );
+    p_block->i_dts = p_block->i_pts = VLC_TS_0 + date_Get( &p_sys->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 );
 
+    date_Increment( &p_sys->pts, p_sys->fmt.audio.i_frame_length * i );
+
     return 1;
 }
 




More information about the vlc-devel mailing list