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

kostya subversion at mplayerhq.hu
Fri Sep 5 14:10:47 CEST 2008


Author: kostya
Date: Fri Sep  5 14:10:47 2008
New Revision: 3707

Log:
Since paths are stored continuously, we can reduce array sizes a bit

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Fri Sep  5 14:10:47 2008
@@ -673,8 +673,8 @@ static void search_for_quantizers(AACEnc
     int i;
     int qcoeffs[128];
     int idx;
-    TrellisPath paths[256*128];
-    int bandaddr[128];
+    TrellisPath paths[256*121];
+    int bandaddr[121];
     const float lambda = 5e-7f;
     int minq = 0;
     float mincost;
@@ -684,7 +684,7 @@ static void search_for_quantizers(AACEnc
         paths[i].cost = 0.0f;
         paths[i].prev = -1;
     }
-    for(i = 256; i < 256*128; i++){
+    for(i = 256; i < 256*121; i++){
         paths[i].cost = INFINITY;
         paths[i].prev = -2;
     }



More information about the FFmpeg-soc mailing list