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

superdump subversion at mplayerhq.hu
Sun Jul 6 13:26:55 CEST 2008


Author: superdump
Date: Sun Jul  6 13:26:55 2008
New Revision: 2702

Log:
Optimisation suggested by Michael


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sun Jul  6 13:26:55 2008
@@ -1241,11 +1241,10 @@ static int decode_spectral_data(AACConte
 static void pulse_tool(AACContext * ac, const IndividualChannelStream * ics, const Pulse * pulse, int * icoef) {
     int i, off = ics->swb_offset[pulse->start];
     for (i = 0; i < pulse->num_pulse; i++) {
+        int ic;
         off += pulse->offset[i];
-        if (icoef[off] > 0)
-            icoef[off] += pulse->amp[i];
-        else
-            icoef[off] -= pulse->amp[i];
+        ic = (icoef[off] - 1)>>31;
+        icoef[off] += (pulse->amp[i]^ic) - ic;
     }
 }
 



More information about the FFmpeg-soc mailing list