Commit 7bf9ebcf authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/a52.c: rewritten from scratch to use the a52 packetizer and to handle a52 wav files and audio CD's.
* modules/codec/a52.c: a52 wav files and audio CD's use padding so don't always check for next sync code.
parent 244e50dc
......@@ -2,7 +2,7 @@
* a52.c: parse A/52 audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2002 VideoLAN
* $Id: a52.c,v 1.32 2003/12/22 14:32:55 sam Exp $
* $Id: a52.c,v 1.33 2004/02/13 21:48:32 gbazin Exp $
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
......@@ -248,6 +248,14 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return NULL;
}
if( p_sys->b_packetizer &&
p_header[0] == 0 && p_header[1] == 0 )
{
/* A52 wav files and audio CD's use stuffing */
p_sys->i_state = STATE_GET_DATA;
break;
}
if( p_header[0] != 0x0b || p_header[1] != 0x77 )
{
msg_Dbg( p_dec, "emulated sync word "
......
SOURCES_a52sys = a52sys.c
SOURCES_a52sys = a52.c
SOURCES_dtssys = dts.c
SOURCES_flac = flac.c
SOURCES_ogg = ogg.c
......
This diff is collapsed.
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