[FFmpeg-soc] [soc]: r2869 - aac/aac.c

superdump subversion at mplayerhq.hu
Sun Jul 27 23:50:14 CEST 2008


Author: superdump
Date: Sun Jul 27 23:50:14 2008
New Revision: 2869

Log:
'bits' is constant throughout the loop so declare it as such and move it
outside the loop


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sun Jul 27 23:50:14 2008
@@ -1059,8 +1059,8 @@ static inline float ivquant(AACContext *
  */
 static int decode_band_types(AACContext * ac, GetBitContext * gb, IndividualChannelStream * ics, enum BandType band_type[][64], int band_type_run_end[][64]) {
     int g;
+    const int bits = (ics->window_sequence == EIGHT_SHORT_SEQUENCE) ? 3 : 5;
     for (g = 0; g < ics->num_window_groups; g++) {
-        int bits = (ics->window_sequence == EIGHT_SHORT_SEQUENCE) ? 3 : 5;
         int k = 0;
         while (k < ics->max_sfb) {
             uint8_t sect_len = k;



More information about the FFmpeg-soc mailing list