aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/psymodel.c
diff options
context:
space:
mode:
authorNathan Caldwell2011-12-17 18:45:55 -0700
committerAlex Converse2012-01-23 11:40:46 -0800
commit025ccf1f8bd669f45b628acf51e7febcb1fddd3b (patch)
tree01729ec4ed66b3c439fe963b3c3e8a512034af31 /libavcodec/psymodel.c
parent6381f913d19d78513bab06fad7c50548975475a3 (diff)
aacenc: Request normalized float samples instead of converting s16 samples to float.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'libavcodec/psymodel.c')
-rw-r--r--libavcodec/psymodel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c
index 740d859456..49df1189e4 100644
--- a/libavcodec/psymodel.c
+++ b/libavcodec/psymodel.c
@@ -112,14 +112,13 @@ av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *av
return ctx;
}
-void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx,
- const int16_t *audio, int16_t *dest,
- int tag, int channels)
+void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, const float *audio,
+ float *dest, int tag, int channels)
{
int ch, i;
if (ctx->fstate) {
for (ch = 0; ch < channels; ch++)
- ff_iir_filter(ctx->fcoeffs, ctx->fstate[tag+ch], ctx->avctx->frame_size,
+ ff_iir_filter_flt(ctx->fcoeffs, ctx->fstate[tag+ch], ctx->avctx->frame_size,
audio + ch, ctx->avctx->channels,
dest + ch, ctx->avctx->channels);
} else {