[FFmpeg-soc] [soc]: r1679 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Sat Dec 29 04:20:09 CET 2007


Author: jbr
Date: Sat Dec 29 04:20:08 2007
New Revision: 1679

Log:
simplify

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Sat Dec 29 04:20:08 2007
@@ -266,17 +266,15 @@ static void idct_transform_coeffs_ch(EAC
 
 static void get_eac3_transform_coeffs_ch(EAC3Context *s, int blk,
         int ch, mant_groups *m){
-    if (s->channel_uses_aht[ch] == 0) {
+    if (!s->channel_uses_aht[ch]) {
         ff_ac3_get_transform_coeffs_ch(m, &s->gbc, s->dexps[ch], s->bap[ch],
                 s->transform_coeffs[ch], s->start_freq[ch], s->end_freq[ch],
                 &s->dith_state);
-    } else {
-        if (s->channel_uses_aht[ch] == 1) {
+    } else if (s->channel_uses_aht[ch] == 1) {
             get_transform_coeffs_aht_ch(s, ch);
             s->channel_uses_aht[ch] = -1; /* AHT info for this frame has been read - do not read again */
-        }
     }
-    if (s->channel_uses_aht[ch] != 0) {
+    if (s->channel_uses_aht[ch]) {
         idct_transform_coeffs_ch(s, ch, blk);
     }
 



More information about the FFmpeg-soc mailing list