aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/aacpsy.c
diff options
context:
space:
mode:
authorAlex Converse2010-05-14 16:49:11 +0000
committerAlex Converse2010-05-14 16:49:11 +0000
commit31184aac87ba9d55cd36924f094c479d1bf50022 (patch)
tree44baf076dc70c6961b995328054bc5f4299ac855 /libavcodec/aacpsy.c
parenteb0a4d32222fedf8022d602b0fd0907e07b54330 (diff)
aacenc: Fix psy logic.
Set band info before determining scalefactors. Use the look ahead for windowing decision. Originally committed as revision 23132 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacpsy.c')
-rw-r--r--libavcodec/aacpsy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
index 53dac3dbfd..4d0c738765 100644
--- a/libavcodec/aacpsy.c
+++ b/libavcodec/aacpsy.c
@@ -195,7 +195,7 @@ static FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx,
int attack_n = 0;
for (i = 0; i < 8; i++) {
for (j = 0; j < 128; j++) {
- v = iir_filter(audio[(i*128+j)*ctx->avctx->channels], pch->iir_state);
+ v = iir_filter(la[(i*128+j)*ctx->avctx->channels], pch->iir_state);
sum += v*v;
}
s[i] = sum;