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

superdump subversion at mplayerhq.hu
Sun Aug 10 00:33:57 CEST 2008


Author: superdump
Date: Sun Aug 10 00:33:56 2008
New Revision: 3113

Log:
Fix broken index incrementation in apply_intensity_stereo()


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sun Aug 10 00:33:56 2008
@@ -1081,8 +1081,10 @@ static void apply_intensity_stereo(Chann
                         for (k = offsets[i]; k < offsets[i+1]; k++)
                             coef1[gp*128 + k] = scale * coef0[gp*128 + k];
                 }
-            } else
-                idx = g*ics->max_sfb + sce1->band_type_run_end[idx];
+            } else {
+                idx += sce1->band_type_run_end[idx] - i;
+                i    = sce1->band_type_run_end[idx];
+            }
         }
         coef0 += ics->group_len[g]*128;
         coef1 += ics->group_len[g]*128;



More information about the FFmpeg-soc mailing list