From 89fcdb15a5c6aa62aeefa54db90f0afc643c3b83 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 28 May 2001 22:00:17 +0000 Subject: updated file from walken CVS patchset: 98 CVS date: 2001/05/28 22:00:17 --- src/libac3/ac3_internal.h | 11 ++++------- src/libac3/xine_decoder.c | 4 +++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/libac3/ac3_internal.h b/src/libac3/ac3_internal.h index 50d951547..d90fc598a 100644 --- a/src/libac3/ac3_internal.h +++ b/src/libac3/ac3_internal.h @@ -85,10 +85,7 @@ typedef struct ac3_ba_s { uint16_t fsnroffst; // fine SNR offset uint16_t fgaincod; // fast gain uint16_t deltbae; // delta bit allocation exists - uint16_t deltnseg; // number of delta bit segments - uint16_t deltoffst[8]; // delta bit offset - uint16_t deltlen[8]; // delta bit length - uint16_t deltba[8]; // delta bit value + int8_t deltba[50]; // per-band delta bit allocation } ac3_ba_t; /* more pain */ @@ -155,9 +152,9 @@ typedef struct audblk_s { uint8_t lfe_exp[7]; /* Bit allocation pointer results */ - uint16_t fbw_bap[5][256]; - uint16_t cpl_bap[256]; - uint16_t lfe_bap[7]; + int8_t fbw_bap[5][256]; + int8_t cpl_bap[256]; + int8_t lfe_bap[7]; uint32_t magic3; } audblk_t; diff --git a/src/libac3/xine_decoder.c b/src/libac3/xine_decoder.c index 065e2c4eb..b34414bac 100644 --- a/src/libac3/xine_decoder.c +++ b/src/libac3/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.4 2001/05/28 01:28:11 f1rmb Exp $ + * $Id: xine_decoder.c,v 1.5 2001/05/28 22:00:17 guenter Exp $ * * stuff needed to turn libac3 into a xine decoder plugin */ @@ -124,6 +124,8 @@ void ac3dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { if (this->syncword != 0x0b77) { this->syncword = (this->syncword << 8) | byte; + printf ("syncword: %04x\n", this->syncword); + if (this->syncword == 0x0b77) { this->frame_buffer[0] = 0x0b; -- cgit v1.2.3