]> git.sesse.net Git - vlc/commitdiff
* all: use 1 as starting time (allow to have a valid date for the first frame).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 15 May 2004 10:52:56 +0000 (10:52 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 15 May 2004 10:52:56 +0000 (10:52 +0000)
modules/demux/aac.c
modules/demux/au.c
modules/demux/mkv.cpp
modules/demux/rawdv.c
modules/demux/wav.c

index 3ae6bf6112e303baa4ab0db0caf8f7333b7adaa1..90830b8838019b044b10af03415e266ae64181f1 100644 (file)
@@ -135,7 +135,7 @@ static int Open( vlc_object_t * p_this )
     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 )
index b73ed5ae447d0104b1961a0e0c0f8d3274e5a4fe..0a76b279a95663911906a6f7acfc3d045114b00b 100644 (file)
@@ -2,7 +2,7 @@
  * 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>
  *
@@ -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->i_time = 0;
+    p_sys->i_time = 1;
     p_sys->i_header_size = GetDWBE( &hdr[0] );
 
     /* skip extra header data */
index 6ced401083408cd7bacba95b533c5d62c8d83142..bc0d4dcae88844ae896e7996070fc540187f99f1 100644 (file)
@@ -1654,7 +1654,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, int i_percent)
             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++ )
         {
@@ -1709,7 +1709,7 @@ static int Demux( demux_t *p_demux)
             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 )
         {
index 6508579bee436a44f5c5ec91d03d8a2f4735d65e..f50c0a56c1aaa2096e9de7b11f6025e574a0c7c8 100644 (file)
@@ -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->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;
 
index 82ae93555943d545a5bed5c6694844b14f288421..acae370d47457ab50f67cc4b9dbf7da3542ade91 100644 (file)
@@ -100,7 +100,7 @@ static int Open( vlc_object_t * p_this )
     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 */