diff ac3dec.c @ 7756:2994fe74068f libavcodec

turn on E-AC-3 decoding support and update the Changelog
author jbr
date Sun, 31 Aug 2008 03:08:18 +0000
parents f44fc478863f
children e5f7a43f63ae
line wrap: on
line diff
--- a/ac3dec.c	Sun Aug 31 03:01:56 2008 +0000
+++ b/ac3dec.c	Sun Aug 31 03:08:18 2008 +0000
@@ -317,9 +317,8 @@
         memset(s->channel_uses_aht, 0, sizeof(s->channel_uses_aht));
         return ac3_parse_header(s);
     } else {
-        /*s->eac3 = 1;
-        return ff_eac3_parse_header(s);*/
-        return AC3_PARSE_ERROR_BSID;
+        s->eac3 = 1;
+        return ff_eac3_parse_header(s);
     }
 }
 
@@ -557,10 +556,8 @@
         /* if AHT is used, mantissas for all blocks are encoded in the first
            block of the frame. */
         int bin;
-        /*
         if (!blk)
             ff_eac3_decode_transform_coeffs_aht_ch(s, ch);
-        */
         for (bin = s->start_freq[ch]; bin < s->end_freq[ch]; bin++) {
             s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin];
         }