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

kostya subversion at mplayerhq.hu
Fri Sep 5 14:19:44 CEST 2008


Author: kostya
Date: Fri Sep  5 14:19:44 2008
New Revision: 3710

Log:
Make sure quantizers are the same for the same band in window group

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Fri Sep  5 14:19:44 2008
@@ -762,6 +762,11 @@ static void search_for_quantizers(AACEnc
         sce->sf_idx[bandaddr[minq>>8]] = minq & 0xFF;
         minq = paths[minq].prev;
     }
+    //set the same quantizers inside window groups
+    for(w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w])
+        for(g = 0;  g < sce->ics.num_swb; g++)
+            for(w2 = 1; w2 < sce->ics.group_len[w]; w2++)
+                sce->sf_idx[(w+w2)*16+g] = sce->sf_idx[w*16+g];
 }
 
 /**



More information about the FFmpeg-soc mailing list