* vorbis.c: vorbis decoder module making use of libvorbis.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: vorbis.c,v 1.17 2003/09/02 20:19:25 gbazin Exp $
+ * $Id: vorbis.c,v 1.18 2003/09/24 23:45:06 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/* Block to Ogg packet */
oggpacket.packet = p_block->p_buffer;
oggpacket.bytes = p_block->i_buffer;
- oggpacket.granulepos = p_block->i_dts;
+ oggpacket.granulepos = -1;
oggpacket.b_o_s = 0;
oggpacket.e_o_s = 0;
oggpacket.packetno = 0;
aout_DateSet( &p_sys->end_date, i_pts );
}
+ if( !aout_DateGet( &p_sys->end_date ) )
+ {
+ /* We've just started the stream, wait for the first PTS. */
+ return VLC_SUCCESS;
+ }
+
if( p_sys->b_packetizer )
{
return SendPacket( p_dec, p_oggpacket );