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

kostya subversion at mplayerhq.hu
Sat Jun 21 09:40:32 CEST 2008


Author: kostya
Date: Sat Jun 21 09:40:32 2008
New Revision: 2497

Log:
10l Forgot to increment band start when skipping zero band

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Sat Jun 21 09:40:32 2008
@@ -535,7 +535,10 @@ static void encode_spectral_data(AVCodec
         if(cpe->ch[channel].ics.group_len[w]) continue;
         start = 0;
         for(i = 0; i < cpe->ch[channel].ics.max_sfb; i++){
-            if(cpe->ch[channel].zeroes[w][i]) continue;
+            if(cpe->ch[channel].zeroes[w][i]){
+                start += cpe->ch[channel].ics.swb_sizes[i];
+                continue;
+            }
             w2 = w;
             do{
                 encode_codebook(s, cpe, channel, start + w2*128, cpe->ch[channel].ics.swb_sizes[i], cpe->ch[channel].cb[w][i]);



More information about the FFmpeg-soc mailing list