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

jbr subversion at mplayerhq.hu
Thu Aug 28 02:10:01 CEST 2008


Author: jbr
Date: Thu Aug 28 02:10:01 2008
New Revision: 3653

Log:
add parsing of spectral extension attenuation data. we don't have any samples
yet which use this, so log missing feature with sample request.

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Thu Aug 28 02:10:01 2008
@@ -466,6 +466,16 @@ int ff_eac3_parse_header(AC3DecodeContex
         }
     }
 
+    /* spectral extension attenuation data */
+    if (parse_spx_atten_data) {
+        av_log_missing_feature(s->avctx, "Spectral extension", 1);
+        for (ch = 1; ch <= s->fbw_channels; ch++) {
+            if (get_bits1(gbc)) { // channel has spx attenuation
+                skip_bits(gbc, 5); // skip spx attenuation code
+            }
+        }
+    }
+
     /* block start information */
     if (s->num_blocks > 1 && get_bits1(gbc)) {
         /* reference: Section E2.3.2.27



More information about the FFmpeg-soc mailing list