[vlc-devel] commit: Fixed initial timestamp value in wav 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:10:06 2009 +0100| [5a0c175b648d4db2d919b9bafaada19e2651bd53] | committer: Laurent Aimar
Fixed initial timestamp value in wav demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a0c175b648d4db2d919b9bafaada19e2651bd53
---
modules/demux/wav.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 8dad269..3c3a012 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -419,7 +419,7 @@ static int Demux( demux_t *p_demux )
}
p_block->i_dts =
- p_block->i_pts = date_Increment( &p_sys->pts, p_sys->i_frame_samples );
+ p_block->i_pts = VLC_TS_0 + date_Get( &p_sys->pts );
/* set PCR */
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block->i_pts );
@@ -433,6 +433,8 @@ static int Demux( demux_t *p_demux )
es_out_Send( p_demux->out, p_sys->p_es, p_block );
+ date_Increment( &p_sys->pts, p_sys->i_frame_samples );
+
return 1;
}
More information about the vlc-devel
mailing list