[FFmpeg-soc] [soc]: r3548 - eac3/ac3dec.c

jbr subversion at mplayerhq.hu
Sat Aug 23 03:46:42 CEST 2008


Author: jbr
Date: Sat Aug 23 03:46:41 2008
New Revision: 3548

Log:
only calculate the number of coupling channel exponent groups if exponenents
are not being reused from the previous block.

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Sat Aug 23 03:46:41 2008
@@ -947,7 +947,7 @@ static int decode_audio_block(AC3DecodeC
                 memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS);
         }
     }
-    if (cpl_in_use) {
+    if (cpl_in_use && s->exp_strategy[blk][CPL_CH] != EXP_REUSE) {
         s->num_exp_groups[CPL_CH] = (s->end_freq[CPL_CH] - s->start_freq[CPL_CH]) /
                                     (3 << (s->exp_strategy[blk][CPL_CH] - 1));
     }



More information about the FFmpeg-soc mailing list