[FFmpeg-cvslog] r17835 - trunk/libavcodec/aac.c

alexc subversion
Fri Mar 6 00:10:22 CET 2009


Author: alexc
Date: Fri Mar  6 00:10:22 2009
New Revision: 17835

Log:
AAC: hoist dependent gain lookup out of the loop

Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Thu Mar  5 23:59:23 2009	(r17834)
+++ trunk/libavcodec/aac.c	Fri Mar  6 00:10:22 2009	(r17835)
@@ -1434,10 +1434,11 @@ static void apply_dependent_coupling(AAC
     for (g = 0; g < ics->num_window_groups; g++) {
         for (i = 0; i < ics->max_sfb; i++, idx++) {
             if (cce->ch[0].band_type[idx] != ZERO_BT) {
+                const float gain = cce->coup.gain[index][idx];
                 for (group = 0; group < ics->group_len[g]; group++) {
                     for (k = offsets[i]; k < offsets[i+1]; k++) {
                         // XXX dsputil-ize
-                        dest[group*128+k] += cce->coup.gain[index][idx] * src[group*128+k];
+                        dest[group*128+k] += gain * src[group*128+k];
                     }
                 }
             }




More information about the ffmpeg-cvslog mailing list