[FFmpeg-soc] [soc]: r2107 - aac/aac.c

andoma subversion at mplayerhq.hu
Wed Apr 9 09:34:22 CEST 2008


Author: andoma
Date: Wed Apr  9 09:34:22 2008
New Revision: 2107

Log:
cosmetical cleanup of pulse_tool()


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed Apr  9 09:34:22 2008
@@ -1292,15 +1292,14 @@ static int decode_spectral_data(AACConte
 }
 
 static void pulse_tool(AACContext * ac, const ics_struct * ics, const pulse_struct * pulse, int * icoef) {
-    int i, off;
-        off = ics->swb_offset[pulse->start];
-        for (i = 0; i <= pulse->num_pulse; i++) {
-            off += pulse->offset[i];
-            if (icoef[off] > 0)
-                icoef[off] += pulse->amp[i];
-            else
-                icoef[off] -= pulse->amp[i];
-        }
+    int i, off = ics->swb_offset[pulse->start];
+    for (i = 0; i <= pulse->num_pulse; i++) {
+        off += pulse->offset[i];
+        if (icoef[off] > 0)
+            icoef[off] += pulse->amp[i];
+        else
+            icoef[off] -= pulse->amp[i];
+    }
 }
 
 static void quant_to_spec_tool(AACContext * ac, const ics_struct * ics, const int * icoef, const int cb[][64], const float sf[][64], float * coef) {



More information about the FFmpeg-soc mailing list