Commit 8885f556 authored by Laurent Aimar's avatar Laurent Aimar

Used VLC_TS_0 in rawvid demuxer.

parent 1239f0ea
...@@ -368,7 +368,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -368,7 +368,7 @@ static int Open( vlc_object_t * p_this )
u_fps_num, u_fps_den, 0); u_fps_num, u_fps_den, 0);
date_Init( &p_sys->pcr, p_sys->fmt_video.video.i_frame_rate, date_Init( &p_sys->pcr, p_sys->fmt_video.video.i_frame_rate,
p_sys->fmt_video.video.i_frame_rate_base ); 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 ) if( !p_sys->fmt_video.video.i_bits_per_pixel )
{ {
...@@ -409,7 +409,7 @@ static int Demux( demux_t *p_demux ) ...@@ -409,7 +409,7 @@ static int Demux( demux_t *p_demux )
mtime_t i_pcr = date_Get( &p_sys->pcr ); mtime_t i_pcr = date_Get( &p_sys->pcr );
/* Call the pace control */ /* 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 ) if( p_sys->b_y4m )
{ {
...@@ -434,7 +434,7 @@ static int Demux( demux_t *p_demux ) ...@@ -434,7 +434,7 @@ static int Demux( demux_t *p_demux )
return 0; 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 ); es_out_Send( p_demux->out, p_sys->p_es_video, p_block );
date_Increment( &p_sys->pcr, 1 ); date_Increment( &p_sys->pcr, 1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment