[vlc-devel] commit: Used VLC_TS_0 in rawvid demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:36 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 21:26:27 2009 +0100| [8885f556e5eb3e9416b66b35ede127426dbe1fac] | committer: Laurent Aimar
Used VLC_TS_0 in rawvid demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8885f556e5eb3e9416b66b35ede127426dbe1fac
---
modules/demux/rawvid.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c
index 4b13aa2..2eb33dd 100644
--- a/modules/demux/rawvid.c
+++ b/modules/demux/rawvid.c
@@ -368,7 +368,7 @@ static int Open( vlc_object_t * p_this )
u_fps_num, u_fps_den, 0);
date_Init( &p_sys->pcr, p_sys->fmt_video.video.i_frame_rate,
p_sys->fmt_video.video.i_frame_rate_base );
- date_Set( &p_sys->pcr, 1 );
+ date_Set( &p_sys->pcr, 0 );
if( !p_sys->fmt_video.video.i_bits_per_pixel )
{
@@ -409,7 +409,7 @@ static int Demux( demux_t *p_demux )
mtime_t i_pcr = date_Get( &p_sys->pcr );
/* Call the pace control */
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, i_pcr );
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + i_pcr );
if( p_sys->b_y4m )
{
@@ -434,7 +434,7 @@ static int Demux( demux_t *p_demux )
return 0;
}
- p_block->i_dts = p_block->i_pts = i_pcr;
+ p_block->i_dts = p_block->i_pts = VLC_TS_0 + i_pcr;
es_out_Send( p_demux->out, p_sys->p_es_video, p_block );
date_Increment( &p_sys->pcr, 1 );
More information about the vlc-devel
mailing list