[vlc-devel] commit: Used VLC_TS_0 in AIFF demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:30 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 16:40:25 2009 +0100| [cacaf61d02726dcbc3878aff79329fd024deb397] | committer: Laurent Aimar
Used VLC_TS_0 in AIFF demuxer.
AIFF is VLC_TS_INVALID compliant.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cacaf61d02726dcbc3878aff79329fd024deb397
---
modules/demux/aiff.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/aiff.c b/modules/demux/aiff.c
index cfc4b16..a236582 100644
--- a/modules/demux/aiff.c
+++ b/modules/demux/aiff.c
@@ -118,7 +118,7 @@ static int Open( vlc_object_t *p_this )
/* Fill p_demux field */
DEMUX_INIT_COMMON(); p_sys = p_demux->p_sys;
es_format_Init( &p_sys->fmt, UNKNOWN_ES, 0 );
- p_sys->i_time = 1;
+ p_sys->i_time = 0;
p_sys->i_ssnd_pos = -1;
for( ;; )
@@ -240,7 +240,7 @@ static int Demux( demux_t *p_demux )
}
/* 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);
/* we will read 100ms at once */
i_read = p_sys->i_ssnd_fsize * ( p_sys->fmt.audio.i_rate / 10 );
@@ -254,7 +254,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;
p_sys->i_time += (int64_t)1000000 *
p_block->i_buffer /
@@ -309,7 +309,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
return VLC_EGENERIC;
}
- p_sys->i_time = 1 + (int64_t)1000000 * i_frame / p_sys->fmt.audio.i_rate;
+ p_sys->i_time = (int64_t)1000000 * i_frame / p_sys->fmt.audio.i_rate;
return VLC_SUCCESS;
}
return VLC_EGENERIC;
More information about the vlc-devel
mailing list