[FFmpeg-cvslog] r13589 - trunk/libavcodec/ac3dec.c

jbr subversion
Sun Jun 1 00:12:01 CEST 2008


Author: jbr
Date: Sun Jun  1 00:12:01 2008
New Revision: 13589

Log:
simplify

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Sun Jun  1 00:12:01 2008
@@ -903,10 +903,7 @@ static int ac3_parse_audio_block(AC3Deco
     s->exp_strategy[CPL_CH] = EXP_REUSE;
     s->exp_strategy[s->lfe_ch] = EXP_REUSE;
     for (ch = !s->cpl_in_use; ch <= s->channels; ch++) {
-        if(ch == s->lfe_ch)
-            s->exp_strategy[ch] = get_bits(gbc, 1);
-        else
-            s->exp_strategy[ch] = get_bits(gbc, 2);
+        s->exp_strategy[ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
         if(s->exp_strategy[ch] != EXP_REUSE)
             bit_alloc_stages[ch] = 3;
     }




More information about the ffmpeg-cvslog mailing list