[FFmpeg-soc] [soc]: r2555 - aac/aac.c
superdump
subversion at mplayerhq.hu
Mon Jun 23 12:25:11 CEST 2008
Author: superdump
Date: Mon Jun 23 12:25:11 2008
New Revision: 2555
Log:
Simplification
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Mon Jun 23 12:25:11 2008
@@ -1228,14 +1228,11 @@ static void pulse_tool(AACContext * ac,
static void quant_to_spec_tool(AACContext * ac, const IndividualChannelStream * ics, const int * icoef, const int cb[][64], const float sf[][64], float * coef) {
const uint16_t * offsets = ics->swb_offset;
+ const int c = 1024/ics->num_window_groups;
int g, i, group, k;
- if(ics->window_sequence == EIGHT_SHORT_SEQUENCE) {
- for(g = 0; g < 8; g++)
- memset(coef + g * 128 + offsets[ics->max_sfb], 0, sizeof(float)*(128 - offsets[ics->max_sfb]));
- } else {
- memset(coef + offsets[ics->max_sfb], 0, sizeof(float)*(1024 - offsets[ics->max_sfb]));
- }
+ for(g = 0; g < ics->num_window_groups; g++)
+ memset(coef + g * 128 + offsets[ics->max_sfb], 0, sizeof(float)*(c - offsets[ics->max_sfb]));
for (g = 0; g < ics->num_window_groups; g++) {
for (i = 0; i < ics->max_sfb; i++) {
More information about the FFmpeg-soc
mailing list