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

andoma subversion at mplayerhq.hu
Tue Apr 22 13:30:41 CEST 2008


Author: andoma
Date: Tue Apr 22 13:30:40 2008
New Revision: 2140

Log:
Rename pulse->num_pulse to pulse->num_pulse_minus1
which is slightly more intuitive.


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Apr 22 13:30:40 2008
@@ -246,7 +246,7 @@ typedef struct {
  */
 typedef struct {
     int present;
-    int num_pulse;
+    int num_pulse_minus1;
     int start;
     int offset[4];
     int amp[4];
@@ -1144,9 +1144,9 @@ static int decode_scale_factor_data(AACC
 
 static void decode_pulse_data(AACContext * ac, GetBitContext * gb, pulse_struct * pulse) {
     int i;
-    pulse->num_pulse = get_bits(gb, 2);
+    pulse->num_pulse_minus1 = get_bits(gb, 2);
     pulse->start = get_bits(gb, 6);
-    for (i = 0; i <= pulse->num_pulse; i++) {
+    for (i = 0; i <= pulse->num_pulse_minus1; i++) {
         pulse->offset[i] = get_bits(gb, 5);
         pulse->amp[i] = get_bits(gb, 4);
     }
@@ -1293,7 +1293,7 @@ static int decode_spectral_data(AACConte
 
 static void pulse_tool(AACContext * ac, const ics_struct * ics, const pulse_struct * pulse, int * icoef) {
     int i, off = ics->swb_offset[pulse->start];
-    for (i = 0; i <= pulse->num_pulse; i++) {
+    for (i = 0; i <= pulse->num_pulse_minus1; i++) {
         off += pulse->offset[i];
         if (icoef[off] > 0)
             icoef[off] += pulse->amp[i];



More information about the FFmpeg-soc mailing list