summaryrefslogtreecommitdiff
path: root/libavcodec/aacpsy.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-07-14 04:10:52 +0000
committerAlex Converse <alex.converse@gmail.com>2010-07-14 04:10:52 +0000
commit49d3aab76468739f4c7c38dc9ecf5e570d14abc1 (patch)
tree7f73ca6cbe1a9920ddea7b0fdc0a9c5c6a5b08c5 /libavcodec/aacpsy.c
parentcecaf7d71a5a14e441b6ce1e02abbf600e160962 (diff)
downloadffmpeg-49d3aab76468739f4c7c38dc9ecf5e570d14abc1.tar.gz
aacenc: psy_3gpp_init(): Fix line_to_frequency for short windows.
Originally committed as revision 24233 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 93559f9d24..19914c9781 100644
--- a/libavcodec/aacpsy.c
+++ b/libavcodec/aacpsy.c
@@ -124,7 +124,7 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
minath = ath(3410, ATH_ADD);
for (j = 0; j < 2; j++) {
Psy3gppCoeffs *coeffs = &pctx->psy_coef[j];
- float line_to_frequency = ctx->avctx->sample_rate / 2048.0f;
+ float line_to_frequency = ctx->avctx->sample_rate / (j ? 256.f : 2048.0f);
i = 0;
prev = 0.0;
for (g = 0; g < ctx->num_bands[j]; g++) {