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

jbr subversion at mplayerhq.hu
Sat Aug 23 05:55:29 CEST 2008


Author: jbr
Date: Sat Aug 23 05:55:29 2008
New Revision: 3554

Log:
merge 2 loops into 1

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Sat Aug 23 05:55:29 2008
@@ -912,14 +912,9 @@ static int decode_audio_block(AC3DecodeC
     }
 
     /* exponent strategies for each channel */
-    if (!s->eac3) {
-        for (ch = !cpl_in_use; ch <= s->channels; ch++) {
-            s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
-        }
-    }
-
-    /* check exponent strategies to set bit allocation stages */
     for (ch = !cpl_in_use; ch <= s->channels; ch++) {
+        if (!s->eac3)
+            s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
         if(s->exp_strategy[blk][ch] != EXP_REUSE)
             bit_alloc_stages[ch] = 3;
     }



More information about the FFmpeg-soc mailing list