p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
- p_sys->i_time = 0;
+ p_sys->i_time = 1;
/* peek the begining (10 is for adts header) */
if( stream_Peek( p_demux->s, &p_peek, 10 ) < 10 )
* au.c : au file input module for vlc
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
- * $Id: au.c,v 1.14 2004/03/03 11:40:19 fenrir Exp $
+ * $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
}
p_sys = p_demux->p_sys = malloc( sizeof( demux_sys_t ) );
- p_sys->i_time = 0;
+ p_sys->i_time = 1;
p_sys->i_header_size = GetDWBE( &hdr[0] );
/* skip extra header data */
return;
}
- p_sys->i_pts = block->GlobalTimecode() * (mtime_t) 1000 / p_sys->i_timescale;
+ p_sys->i_pts = block->GlobalTimecode() * (mtime_t) 1000 / p_sys->i_timescale + 1;
for( i_track = 0; i_track < p_sys->i_track; i_track++ )
{
return 0;
}
- p_sys->i_pts = block->GlobalTimecode() * (mtime_t) 1000 / p_sys->i_timescale;
+ p_sys->i_pts = block->GlobalTimecode() * (mtime_t) 1000 / p_sys->i_timescale + 1;
if( p_sys->i_pts > 0 )
{
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 = 0;
+ p_sys->i_pcr = 1;
p_sys->p_es_video = NULL;
p_sys->p_es_audio = NULL;
p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
p_sys->p_es = NULL;
- p_sys->i_time = 0;
+ p_sys->i_time = 1;
/* skip riff header */
stream_Read( p_demux->s, NULL, 12 ); /* cannot fail as peek succeed */