[FFmpeg-cvslog] r14990 - in trunk/libavcodec: ac3dec.c ac3dec.h
jbr
subversion
Wed Aug 27 03:40:47 CEST 2008
Author: jbr
Date: Wed Aug 27 03:40:46 2008
New Revision: 14990
Log:
copy default coupling band structure from table to decoding context (used for E-AC-3)
Modified:
trunk/libavcodec/ac3dec.c
trunk/libavcodec/ac3dec.h
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Wed Aug 27 03:40:46 2008
@@ -824,6 +824,9 @@ static int decode_audio_block(AC3DecodeC
s->cpl_band_struct[bnd] = get_bits1(gbc);
}
} else if (!blk) {
+ memcpy(s->cpl_band_struct,
+ &ff_eac3_default_cpl_band_struct[cpl_begin_freq+1],
+ s->num_cpl_subbands-1);
}
s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
Modified: trunk/libavcodec/ac3dec.h
==============================================================================
--- trunk/libavcodec/ac3dec.h (original)
+++ trunk/libavcodec/ac3dec.h Wed Aug 27 03:40:46 2008
@@ -82,7 +82,7 @@ typedef struct {
int phase_flags[18]; ///< phase flags (phsflg)
int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd)
int num_cpl_bands; ///< number of coupling bands (ncplbnd)
- int cpl_band_struct[18]; ///< coupling band structure (cplbndstrc)
+ uint8_t cpl_band_struct[18]; ///< coupling band structure (cplbndstrc)
int firstchincpl; ///< first channel in coupling
int first_cpl_coords[AC3_MAX_CHANNELS]; ///< first coupling coordinates states (firstcplcos)
int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco)
More information about the ffmpeg-cvslog
mailing list