[vlc-devel] commit: Used VLC_TS_0 in rawdv demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:35 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 21:25:11 2009 +0100| [1239f0ea6bdb0fb2955808d03ca9f88d9f179b05] | committer: Laurent Aimar
Used VLC_TS_0 in rawdv demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1239f0ea6bdb0fb2955808d03ca9f88d9f179b05
---
modules/demux/rawdv.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/rawdv.c b/modules/demux/rawdv.c
index 0b3c315..9b9611d 100644
--- a/modules/demux/rawdv.c
+++ b/modules/demux/rawdv.c
@@ -216,7 +216,7 @@ static int Open( vlc_object_t * p_this )
p_sys->frame_size = dv_header.dsf ? 12 * 150 * 80 : 10 * 150 * 80;
p_sys->f_rate = dv_header.dsf ? 25 : 29.97;
- p_sys->i_pcr = 1;
+ p_sys->i_pcr = 0;
p_sys->p_es_video = NULL;
p_sys->p_es_audio = NULL;
@@ -294,7 +294,7 @@ static int Demux( demux_t *p_demux )
}
/* Call the pace control */
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pcr );
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_pcr );
p_block = stream_Block( p_demux->s, p_sys->frame_size );
if( p_block == NULL )
{
@@ -309,7 +309,7 @@ static int Demux( demux_t *p_demux )
}
p_block->i_dts =
- p_block->i_pts = p_sys->i_pcr;
+ p_block->i_pts = VLC_TS_0 + p_sys->i_pcr;
if( b_audio )
{
@@ -317,7 +317,7 @@ static int Demux( demux_t *p_demux )
if( p_audio_block )
{
p_audio_block->i_pts =
- p_audio_block->i_dts = p_sys->i_pcr;
+ p_audio_block->i_dts = VLC_TS_0 + p_sys->i_pcr;
es_out_Send( p_demux->out, p_sys->p_es_audio, p_audio_block );
}
}
More information about the vlc-devel
mailing list