[FFmpeg-soc] [soc]: r3664 - eac3/ac3dec.c
jbr
subversion at mplayerhq.hu
Fri Aug 29 02:25:57 CEST 2008
Author: jbr
Date: Fri Aug 29 02:25:57 2008
New Revision: 3664
Log:
simplify check for new coupling coordinates
Modified:
eac3/ac3dec.c
Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c (original)
+++ eac3/ac3dec.c Fri Aug 29 02:25:57 2008
@@ -852,18 +852,9 @@ static int decode_audio_block(AC3DecodeC
for (ch = 1; ch <= fbw_channels; ch++) {
if (s->channel_in_cpl[ch]) {
- int new_cpl_coords = 0;
-
- /* determine if coupling coordinates are new or reused */
- if (s->eac3 && s->first_cpl_coords[ch]) {
- new_cpl_coords = 1;
- s->first_cpl_coords[ch] = 0;
- } else {
- new_cpl_coords = get_bits1(gbc);
- }
-
- if (new_cpl_coords) {
+ if ((s->eac3 && s->first_cpl_coords[ch]) || get_bits1(gbc)) {
int master_cpl_coord, cpl_coord_exp, cpl_coord_mant;
+ s->first_cpl_coords[ch] = 0;
cpl_coords_exist = 1;
master_cpl_coord = 3 * get_bits(gbc, 2);
for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
More information about the FFmpeg-soc
mailing list