[FFmpeg-soc] [soc]: r3709 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Fri Sep 5 14:17:07 CEST 2008


Author: kostya
Date: Fri Sep  5 14:17:04 2008
New Revision: 3709

Log:
Store data directly, without intermediate stack

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Fri Sep  5 14:17:04 2008
@@ -678,7 +678,6 @@ static void search_for_quantizers(AACEnc
     const float lambda = 5e-7f;
     int minq;
     float mincost;
-    int stack[128], sptr = 0;
 
     for(i = 0; i < 256; i++){
         paths[i].cost = 0.0f;
@@ -759,13 +758,10 @@ static void search_for_quantizers(AACEnc
             minq = idx + i;
         }
     }
-    while(minq >= 0){
-        stack[sptr++] = minq;
+    while(minq >= 256){
+        sce->sf_idx[bandaddr[minq>>8]] = minq & 0xFF;
         minq = paths[minq].prev;
     }
-    for(i = sptr - 2; i >= 0; i--){
-        sce->sf_idx[bandaddr[stack[i]>>8]] = stack[i]&0xFF;
-    }
 }
 
 /**



More information about the FFmpeg-soc mailing list