Commit 84995ec7 authored by Laurent Aimar's avatar Laurent Aimar

* all: use 1 as starting time (allow to have a valid date for the first frame).

parent 3bcdafa1
...@@ -135,7 +135,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -135,7 +135,7 @@ static int Open( vlc_object_t * p_this )
p_demux->pf_control = Control; p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) ); 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) */ /* peek the begining (10 is for adts header) */
if( stream_Peek( p_demux->s, &p_peek, 10 ) < 10 ) if( stream_Peek( p_demux->s, &p_peek, 10 ) < 10 )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* au.c : au file input module for vlc * au.c : au file input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2003 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -131,7 +131,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -131,7 +131,7 @@ static int Open( vlc_object_t *p_this )
} }
p_sys = p_demux->p_sys = malloc( sizeof( demux_sys_t ) ); 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] ); p_sys->i_header_size = GetDWBE( &hdr[0] );
/* skip extra header data */ /* skip extra header data */
......
...@@ -1654,7 +1654,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, int i_percent) ...@@ -1654,7 +1654,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, int i_percent)
return; 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++ ) for( i_track = 0; i_track < p_sys->i_track; i_track++ )
{ {
...@@ -1709,7 +1709,7 @@ static int Demux( demux_t *p_demux) ...@@ -1709,7 +1709,7 @@ static int Demux( demux_t *p_demux)
return 0; 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 ) if( p_sys->i_pts > 0 )
{ {
......
...@@ -203,7 +203,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -203,7 +203,7 @@ static int Open( vlc_object_t * p_this )
p_sys->frame_size = dv_header.dsf ? 12 * 150 * 80 : 10 * 150 * 80; 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->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_video = NULL;
p_sys->p_es_audio = NULL; p_sys->p_es_audio = NULL;
......
...@@ -100,7 +100,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -100,7 +100,7 @@ static int Open( vlc_object_t * p_this )
p_demux->pf_control = Control; p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) ); p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
p_sys->p_es = NULL; p_sys->p_es = NULL;
p_sys->i_time = 0; p_sys->i_time = 1;
/* skip riff header */ /* skip riff header */
stream_Read( p_demux->s, NULL, 12 ); /* cannot fail as peek succeed */ stream_Read( p_demux->s, NULL, 12 ); /* cannot fail as peek succeed */
......
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