Fixed initial timestamp value in TTA demuxer.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 20 Dec 2009 20:57:16 +0000 (21:57 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 20 Dec 2009 22:23:29 +0000 (23:23 +0100)
modules/demux/tta.c

index dd32597..b0c53bb 100644 (file)
@@ -200,7 +200,7 @@ static int Demux( demux_t *p_demux )
 
     p_data = stream_Block( p_demux->s, p_sys->pi_seektable[p_sys->i_currentframe] );
     if( p_data == NULL ) return 0;
-    p_data->i_dts = p_data->i_pts = (int64_t)(1 + INT64_C(1000000) * p_sys->i_currentframe) * TTA_FRAMETIME;
+    p_data->i_dts = p_data->i_pts = VLC_TS_0 + (int64_t)(INT64_C(1000000) * p_sys->i_currentframe) * TTA_FRAMETIME;
 
     p_sys->i_currentframe++;