Commit b57a899c authored by jbr's avatar jbr

copy default coupling band structure from table to decoding context (used for E-AC-3)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14990 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa14c96d
...@@ -824,6 +824,9 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) ...@@ -824,6 +824,9 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
s->cpl_band_struct[bnd] = get_bits1(gbc); s->cpl_band_struct[bnd] = get_bits1(gbc);
} }
} else if (!blk) { } 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; s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
......
...@@ -82,7 +82,7 @@ typedef struct { ...@@ -82,7 +82,7 @@ typedef struct {
int phase_flags[18]; ///< phase flags (phsflg) int phase_flags[18]; ///< phase flags (phsflg)
int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd) int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd)
int num_cpl_bands; ///< number of coupling bands (ncplbnd) 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 firstchincpl; ///< first channel in coupling
int first_cpl_coords[AC3_MAX_CHANNELS]; ///< first coupling coordinates states (firstcplcos) int first_cpl_coords[AC3_MAX_CHANNELS]; ///< first coupling coordinates states (firstcplcos)
int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco) int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco)
......
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