[vlc-devel] commit: Used VLC_TS_0 in AU demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:31 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 16:45:02 2009 +0100| [02ea19ed1e27c3253706ea4e6058e676059df015] | committer: Laurent Aimar
Used VLC_TS_0 in AU demuxer.
AU demuxer is VLC_TS_INVALID 'compliant'.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02ea19ed1e27c3253706ea4e6058e676059df015
---
modules/demux/au.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/au.c b/modules/demux/au.c
index bccf2ea..1efd2d0 100644
--- a/modules/demux/au.c
+++ b/modules/demux/au.c
@@ -132,7 +132,7 @@ static int Open( vlc_object_t *p_this )
}
DEMUX_INIT_COMMON(); p_sys = p_demux->p_sys;
- p_sys->i_time = 1;
+ p_sys->i_time = 0;
p_sys->i_header_size = GetDWBE( &hdr[0] );
/* skip extra header data */
@@ -293,7 +293,7 @@ static int Demux( demux_t *p_demux )
block_t *p_block;
/* set PCR */
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_time );
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_time );
if( ( p_block = stream_Block( p_demux->s, p_sys->i_frame_size ) ) == NULL )
{
@@ -302,7 +302,7 @@ static int Demux( demux_t *p_demux )
}
p_block->i_dts =
- p_block->i_pts = p_sys->i_time;
+ p_block->i_pts = VLC_TS_0 + p_sys->i_time;
es_out_Send( p_demux->out, p_sys->es, p_block );
More information about the vlc-devel
mailing list