[FFmpeg-soc] [soc]: r2180 - aac/aac.c
superdump
subversion at mplayerhq.hu
Thu May 22 13:55:34 CEST 2008
Author: superdump
Date: Thu May 22 13:55:33 2008
New Revision: 2180
Log:
Reduce code duplication
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Thu May 22 13:55:33 2008
@@ -1670,29 +1670,21 @@ static void tns_filter_tool(AACContext *
// ar filter
memset(b, 0, sizeof(b));
ib = 0;
- if (decode) {
for (m = 0; m < size; m++) {
tmp = coef[start];
+ if (decode) {
for (i = 0; i < order; i++)
tmp -= b[ib + i] * lpc[i + 1];
- if (--ib < 0)
- ib = order - 1;
- b[ib] = b[ib + order] = tmp;
- coef[start] = tmp;
- start += inc;
- }
} else { // encode
- for (m = 0; m < size; m++) {
- tmp = coef[start];
for (i = 0; i < order; i++)
tmp += b[i] * lpc[i + 1];
+ }
if (--ib < 0)
ib = order - 1;
b[ib] = b[ib + order] = tmp;
coef[start] = tmp;
start += inc;
}
- }
}
}
}
More information about the FFmpeg-soc
mailing list