* (http://liba52.sf.net/).
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: a52.c,v 1.12 2002/05/24 12:42:14 gbazin Exp $
+ * $Id: a52.c,v 1.13 2002/05/27 16:01:42 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
if( b_new_pes )
{
/* Drop special AC3 header */
- p_bit_stream->p_byte += 3;
+/* p_bit_stream->p_byte += 3; */
}
}
* ac3_adec.c: ac3 decoder module main file
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: ac3_adec.c,v 1.30 2002/05/15 19:36:04 sam Exp $
+ * $Id: ac3_adec.c,v 1.31 2002/05/27 16:01:42 fenrir Exp $
*
* Authors: Michel Lespinasse <walken@zoy.org>
*
if( b_new_pes )
{
/* Drop special AC3 header */
- p_bit_stream->p_byte += 3;
+/* p_bit_stream->p_byte += 3; */
}
}
* ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: ac3_spdif.c,v 1.25 2002/05/24 12:42:14 gbazin Exp $
+ * $Id: ac3_spdif.c,v 1.26 2002/05/27 16:01:42 fenrir Exp $
*
* Authors: Stéphane Borel <stef@via.ecp.fr>
* Juha Yrjola <jyrjola@cc.hut.fi>
{
p_spdif = (ac3_spdif_thread_t *)p_bit_stream->p_callback_arg;
- p_bit_stream->p_byte += 3;
+/* p_bit_stream->p_byte += 3; */
p_spdif->i_pts =
p_bit_stream->p_decoder_fifo->p_first->i_pts;
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: mpeg_system.c,v 1.96 2002/05/18 17:47:47 sam Exp $
+ * $Id: mpeg_system.c,v 1.97 2002/05/27 16:01:42 fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
i_pes_header_size++;
}
+ if( p_es->i_type == AC3_AUDIO_ES )
+ {
+ /* With ac3 audio, we need to skip first 3 bytes */
+ i_pes_header_size += 3;
+ }
+
/* Now we've parsed the header, we just have to indicate in some
* specific data packets where the PES payload begins (renumber
* p_payload_start), so that the decoders can find the beginning
}
p_data->p_payload_start += i_pes_header_size;
+
/* Now we can eventually put the PES packet in the decoder's
* PES fifo */
if( p_es->p_decoder_fifo != NULL )