[FFmpeg-soc] [soc]: r2514 - aac/aac.c
superdump
subversion at mplayerhq.hu
Sat Jun 21 16:33:52 CEST 2008
Author: superdump
Date: Sat Jun 21 16:33:51 2008
New Revision: 2514
Log:
Initialise sect_len to k to avoid having to add k
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Sat Jun 21 16:33:51 2008
@@ -1001,7 +1001,7 @@ static int decode_section_data(AACContex
int bits = (ics->window_sequence == EIGHT_SHORT_SEQUENCE) ? 3 : 5;
int k = 0;
while (k < ics->max_sfb) {
- int sect_len = 0;
+ int sect_len = k;
int sect_len_incr;
int sect_cb = get_bits(gb, 4);
if (sect_cb == 12) {
@@ -1011,7 +1011,6 @@ static int decode_section_data(AACContex
while ((sect_len_incr = get_bits(gb, bits)) == (1 << bits)-1)
sect_len += sect_len_incr;
sect_len += sect_len_incr;
- sect_len += k;
for (; k < sect_len && k < ics->max_sfb; k++)
cb[g][k] = sect_cb;
}
More information about the FFmpeg-soc
mailing list