[FFmpeg-soc] [soc]: r2909 - aacenc/aacpsy.c

kostya subversion at mplayerhq.hu
Wed Jul 30 13:36:37 CEST 2008


Author: kostya
Date: Wed Jul 30 13:36:37 2008
New Revision: 2909

Log:
49l Determine maximum nonzero band for all windows, not only the first one

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Wed Jul 30 13:36:37 2008
@@ -132,7 +132,7 @@ static void psy_create_output(AACPsyCont
                 }
                 start += cpe->ch[ch].ics.swb_sizes[g];
             }
-            for(cmaxsfb = cpe->ch[ch].ics.num_swb; cmaxsfb > 0 && cpe->ch[ch].zeroes[0][cmaxsfb-1]; cmaxsfb--);
+            for(cmaxsfb = cpe->ch[ch].ics.num_swb; cmaxsfb > 0 && cpe->ch[ch].zeroes[w][cmaxsfb-1]; cmaxsfb--);
             maxsfb = FFMAX(maxsfb, cmaxsfb);
         }
         cpe->ch[ch].ics.max_sfb = maxsfb;



More information about the FFmpeg-soc mailing list