Mercurial > libavcodec.hg
changeset 12162:f948f8cf97db libavcodec
aacenc: psy_3gpp_init(): Fix line_to_frequency for short windows.
author | alexc |
---|---|
date | Wed, 14 Jul 2010 04:10:52 +0000 |
parents | d34f0f3ac678 |
children | 9cfc564bc3e6 |
files | aacpsy.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/aacpsy.c Wed Jul 14 04:10:47 2010 +0000 +++ b/aacpsy.c Wed Jul 14 04:10:52 2010 +0000 @@ -124,7 +124,7 @@ 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++) {